0.0.3 • Published 7 years ago
state-compare v0.0.3
state compare
Framework/Library independent state comparison.
const compare = require('state-compare');
let currentState = {
someValue: 30
};
let nextState = {
someValue: 50
};
compare.isDifferent(currentState, nextState); // true
It's not just for states!!
state-compare
can be used for comparing any data and isnt tied to comparing states. Any object or array/arrays of objects can be used.