rOACCT/node_modules/deep-extend9045e4d5dbe1drf-api-tracking
rOACCT/node_modules/deep-extend
9045e4d5dbe1drf-api-tracking
README.md
README.md
Deep Extend
Recursive object extending.
![Build Status](https://travis-ci.org/unclechu/node-deep-extend)
![NPM](https://nodei.co/npm/deep-extend/)
Install
bash $ npm install deep-extend
Usage
javascript var deepExtend = require('deep-extend'); var obj1 = { a: 1, b: 2, d: { a: 1, b: [], c: { test1: 123, test2: 321 } }, f: 5, g: 123, i: 321, j: [1, 2] }; var obj2 = { b: 3, c: 5, d: { b: { first: 'one', second: 'two' }, c: { test2: 222 } }, e: { one: 1, two: 2 }, f: [], g: (void 0), h: /abc/g, i: null, j: [3, 4] }; deepExtend(obj1, obj2); console.log(obj1); /* { a: 1, b: 3, d: { a: 1, b: { first: 'one', second: 'two' }, c: { test1: 123, test2: 222 } }, f: [], g: undefined, c: 5, e: { one: 1, two: 2 }, h: /abc/g, i: null, j: [3, 4] } */
Unit testing
bash $ npm test
Changelog
[CHANGELOG.md](./CHANGELOG.md)
Any issues?
Please, report about issues here.
License
[MIT](./LICENSE)
c4science · Help