merge-deeper-object
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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 } }

Author

Ilyass Mabrouk

License

MIT

Package Sidebar

Install

npm i merge-deeper-object

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

3.42 kB

Total Files

5

Last publish

Collaborators

  • ilyassmabrouk