0.0.3 • Published 7 years ago

state-compare v0.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Build Status

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.