updeep-remeda/README.md
2015-08-01 09:23:19 -07:00

878 B

updeep NPM version Build Status Dependency Status

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