|
há 5 anos atrás | |
---|---|---|
.. | ||
index.js | há 5 anos atrás | |
license | há 5 anos atrás | |
package.json | há 5 anos atrás | |
readme.md | há 5 anos atrás |
Recursive
Object.assign()
$ npm install --save deep-assign
var deepAssign = require('deep-assign');
deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3}});
//=> {a: {b: 1, c: 3}}
Recursively assigns own enumerable properties of source
objects to the target
object and returns the target
object. Additional source
objects will overwrite previous ones.
MIT © Sindre Sorhus