merge-deeper-object
v0.2.0
Published
Deep merge properties of objects.
Downloads
16
Maintainers
Readme
merge-deeper-object
Combine the attributes of objects deeply.
Install
npm install --save merge-deeper-object
Running tests
npm install
npm run test
Usage
var mergeDeeper = require('merge-deeper-object')
var obj1 = { a: { b: { c: 1 } }, d: "d", e: { f: true } }
var obj2 = { a: { g: "g" }, d: "dd", e: { f: false } }
mergeDeeper(obj1, obj2)
> { a: { b: { c: 1 }, g: "g" }, d: "dd", e: { f: false } }