state-compare
v0.0.3
Published
framework independent state comparison module. Checks for changed state and can return differences.
Downloads
1
Readme
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.