1.0.1 • Published 5 years ago

assign-deep v1.0.1

Weekly downloads
59,807
License
MIT
Repository
github
Last release
5 years ago

assign-deep NPM version NPM monthly downloads NPM total downloads Linux 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 install --save assign-deep

Usage

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

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

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

About

Related projects

You might also be interested in these 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

Contributing

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

Contributors

CommitsContributor
23jonschlinkert
11doowb

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on August 03, 2017.

3m-plugin-postprocessing-effect-composereasy-threetiny-consent@everything-registry/sub-chunk-1172arango-toolsbabel-preset-modern-asyncbatch-task-assignmentautonym@aloha66/vue-lazyload@63pokupki/design-systemappintro-udrassemble-sitemaps@conneryn/cli@comprando/react-native-app-intro@daytona/lds-server@datawrapper/ormcooperationconventional-changelog-unconventional@datatypes/configbrowser-window@blackblockrocks/minecraft-render@baiyun/yun-tools@c6o/cli@c6o/daemonohcnode-vault-clientnode-vault-client-axiosobj-perms-engineobject-trans-utilput-valueplaceholdersreact-native-app-introreact-native-app-intro-2react-native-app-intro-nocturnereact-native-app-intro-unierrreact-native-app-intro-version-4react-native-app-intro-xreact-native-app-walkthroughreact-native-awesome-intropackupparasol-clireact-native-slide-package-edited-by-sunlords-logzzz-webpack-reactzz-webpack-vuevenus-mapubiatar-react-native-material-uiuhutu-clitradebasetransmutabletiptap-renderingtiptap-rendering-xiatiantext-replace-loaderweifund-contractsyet-another-nuxt-oauth2zengt-uitime-line-segmenttiled-hexagonsthree-unifiedstyletron-themerstore-cachestripe-mock-datastripe-mock-webhookssasoschema-payload-generatorrn-app-introrn-falcon-app-introreact-native-intro-screensreact-native-intro-appreact-native-intro-edit-by-sun-lordreact-native-onboardingreact-stencilreact-stencil-clicfx.neckbeardcfx.react.stylecfx.style@comet-cli/corecitation-server@clevyr/pavo-express-graphql@clevyr/pavo-hapi-graphql@clevyr/pavo-mailer@crystaldesign/gridbacktrace-morgue@exdj158/minecraft-render@frogeducation/react-native-app-intro3m-object-lines3m-plugin-control@ircam/comote-helpersdnet-react-componentdeps-formatter@financial-times/x-engine@financial-times/dotcom-build-code-splitting@goodboydigital/astro@leftsquarebracket/minecraft-render@medallyon/djs-framework@modaoperandi2/adjacency-list@narwhal/data-engine-core@notores/coregraphdb-jsgraph-db-client
0.4.8

5 years ago

1.0.1

5 years ago

1.0.0

6 years ago

0.4.7

6 years ago

0.4.6

7 years ago

0.4.5

8 years ago

0.4.4

8 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.1.2

9 years ago

0.1.0

9 years ago