state-compare

0.0.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i state-compare

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • atmd