Skip to content

Combine the attributes of objects deeply. Compatible with both CommonJS (CJS) and ECMAScript Module (ESM) formats.

License

Notifications You must be signed in to change notification settings

work-state/merge-deeper-object

Repository files navigation

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

About

Combine the attributes of objects deeply. Compatible with both CommonJS (CJS) and ECMAScript Module (ESM) formats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published