This package has been deprecated

Author message:

Check out `lodash.merge` or `merge-options` instead.

deep-assign
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/deep-assign package

3.0.0 • Public • Published

deep-assign Build Status

Recursive Object.assign()

Install

$ npm install --save deep-assign

Usage

var deepAssign = require('deep-assign');
 
deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3}});
//=> {a: {b: 1, c: 3}}

deepAssign(target, source, [source, ...])

Recursively assigns own enumerable properties of source objects to the target object and returns the target object. Additional source objects will overwrite previous ones.

Related

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i deep-assign

Weekly Downloads

207,107

Version

3.0.0

License

MIT

Unpacked Size

4.15 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus