JSPM

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

Like "object-assign", but deeper.

Package Exports

  • object-assign-deep
  • object-assign-deep/objectAssignDeep

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 (object-assign-deep) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Object-Assign-Deep

See the object-assign module for more information. Only use this with plain JavaScript objects.

Example Usage

var objectAssignDeep = require('../objectAssignDeep');

var a = {
  prop1: 'Hello',
  prop2: 'World',
  nested: {
    bool: true,
    super: 123,
    still: 'here!'
  }
};

var b = {
  prop2: 'Universe',
  name:  'Josh',
  nested: {
    bool: false
  }
};

var c = {
  location: 'United Kingdom',
  name:     'Bob',
  nested: {
    super: 999
  }
};

var result = objectAssignDeep(a, b, c);

console.log('Result:', result);

Simples!