0.1.4 • Published 9 years ago

immutable-merge v0.1.4

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

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