immutable-merge

0.1.4 • Public • Published

immutable-merge Build Status

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

Package Sidebar

Install

npm i immutable-merge

Weekly Downloads

3

Version

0.1.4

License

ISC

Last publish

Collaborators

  • reinaldo13