Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assign-deep

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assign-deep

Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target (first) object.

  • 0.4.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
60K
increased by2.42%
Maintainers
1
Weekly downloads
 
Created
Source

assign-deep NPM version Build Status

Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target (first) object.

Install

Install with npm

$ npm i assign-deep --save

Usage

var assign = require('assign-deep');

var one = {b: {c: {d: 'e'}}};
var two = {b: {c: {f: 'g', j: 'i'}}};
var three = {foo: 'bar'};

assign(one, two, three);
//=> {b: {c: {d: 'e', f: 'g', j: 'i'}}, foo: 'bar'}

Similar projects

  • assign-symbols: Assign the enumerable es6 Symbol properties from an object (or objects) to the first object… more | homepage
  • extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util. | homepage
  • merge-deep: Recursively merge values in a javascript object. | homepage
  • mixin-deep: Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. | homepage

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on November 06, 2015.

Keywords

FAQs

Package last updated on 06 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc