Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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

install

npm i immutable-merge

Downloadsweekly downloads

2

version

0.1.4

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability