878 B
878 B
updeep
Easily update immutable objects (frozen or not) in a declarative way.
Install
$ npm install --save updeep
Usage
var u = require('updeep');
u({ foo: 3 }, { foo: 1, bar: 2 });
// => { foo: 3, bar: 2 }
Or with a function:
u({ foo: x => (x + 1) }, { foo: 2 });
// => { foo: 3 }
License
MIT © Aaron Jensen