Fork of updeep using Remeda
lib | ||
test | ||
.babelrc | ||
.editorconfig | ||
.eslintrc | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
gulpfile.js | ||
LICENSE.txt | ||
package.json | ||
README.md |
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