1.0.0 • Published 6 years ago

immutable-changes v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Immutable-changes

detects changes applied to 2 "immutable" objects, like 2 different redux states

API

import {detectChanges} from 'immutable-changes';

const state1 = {a, b, c};
const state2 = {...state1, d};

detectChanges(state1, state2) => {d: "created"}

detectChanges will return an object, containing keys of

Licence

MIT