immutable-merge
v0.1.4
Published
Allows you to merge objects without mutating them.
Downloads
12
Maintainers
Readme
immutable-merge
Allows you to merge objects without mutating them. It would be the equivalent to:
Object.assign({}, object1, object2);
The difference is that with immutable-merge
you won't need to remember to add the {}
in order to make the "merge" without mutating the original objects.
Installation
npm install immutable-merge --save
Usage
var merge = require('immutable-merge');
merge({bar: 1}, {baz: 2});
//=> {bar: 1, baz: 2}
Tests
npm test
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
Release History
- 0.1.4 Initial release