object-merger1.0.3 • Public • Published
Object.assign. It's very simple, written in ES6+ and handles a basic deep copy of objects.
This was written due to lack of power with
Object.assign and the heavier weight of some alternative packages trying to support everything.
const merge = ;const obj4 = ; // returns a new object, doesn't modify existing.
Optionally you could add a static to the
Objectmerge = ;const obj4 = Object; // returns a new object, doesn't modify existing.
Check out the test folder for more!
$ npm install object-merger
- Merge multiple objects instead of overwrite them.
- Simple, fast, light-weight with no external dependencies
- Written in ES6+ for node.js 6+
- Test driven
As many objects as you'd like to merge from left to right.
From the package
$ npm test