Socket
Socket
Sign inDemoInstall

assign-deep

Package Overview
Dependencies
4
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    assign-deep

Deeply assign the enumerable properties of source objects to a destination object.


Version published
Weekly downloads
79K
decreased by-8.67%
Maintainers
1
Install size
35.9 kB
Created
Weekly downloads
 

Readme

Source

assign-deep NPM version Build Status

Deeply assign the enumerable properties of source objects to a destination 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'}}};

assign(one, two);
//=> {b: {c: {d: 'e', f: 'g', j: 'i'}}}
  • defaults-deep: Like extend but recursively copies only the missing properties/values to the target object.
  • extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util.
  • is-extendable: Returns true if a value is any of the object types: array, regexp, plain object,… more
  • merge-deep: Recursively merge values in a javascript object.
  • mixin-deep: Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.
  • omit-deep: Recursively omit the specified key or keys from an object.

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 June 29, 2015.

Keywords

FAQs

Last updated on 21 Aug 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc