deep-assign

Recursive Object.assign()

Check out `lodash.merge` or `merge-options` instead.
Last updated 6 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install deep-assign 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (6 years ago)

3 Versions

  • 3.0.0 [deprecated]           ...           6 years ago
  • 2.0.0                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (3)

Copyright 2013 - present © cnpmjs.org | Home |