deep-assign

WebJar for deep-assign

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.sindresorhus
ArtifactId

ArtifactId

deep-assign
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

deep-assign
WebJar for deep-assign
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/deep-assign

Download deep-assign

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/deep-assign/ -->
<dependency>
    <groupId>org.webjars.bowergithub.sindresorhus</groupId>
    <artifactId>deep-assign</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/deep-assign/
implementation 'org.webjars.bowergithub.sindresorhus:deep-assign:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.sindresorhus/deep-assign/
implementation ("org.webjars.bowergithub.sindresorhus:deep-assign:2.0.0")
'org.webjars.bowergithub.sindresorhus:deep-assign:jar:2.0.0'
<dependency org="org.webjars.bowergithub.sindresorhus" name="deep-assign" rev="2.0.0">
  <artifact name="deep-assign" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.sindresorhus', module='deep-assign', version='2.0.0')
)
libraryDependencies += "org.webjars.bowergithub.sindresorhus" % "deep-assign" % "2.0.0"
[org.webjars.bowergithub.sindresorhus/deep-assign "2.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bowergithub.sindresorhus » is-obj jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

DEPRECATED

Version 2 of this module ended up being something I don't want and I don't have time to fix it.

Check out lodash.merge or merge-options instead.


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.

Related

License

MIT © Sindre Sorhus

Versions

Version
2.0.0