JSPM

deep-assign

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 195576
  • Score
    100M100P100Q58920F
  • License MIT

Recursive Object.assign()

Package Exports

  • deep-assign

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (deep-assign) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.

License

MIT © Sindre Sorhus