object-assign

WebJar for object-assign

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

github-com-sindresorhus-object-assign
Last Version

Last Version

4.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

object-assign
WebJar for object-assign
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

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

Download github-com-sindresorhus-object-assign

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

object-assign Build Status

ES2015 Object.assign() ponyfill

Use the built-in

Node.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari), support Object.assign() 🎉 . If you target only those environments, then by all means, use Object.assign() instead of this package.

Install

$ npm install object-assign

Usage

const objectAssign = require('object-assign');

objectAssign({foo: 0}, {bar: 1});
//=> {foo: 0, bar: 1}

// multiple sources
objectAssign({foo: 0}, {bar: 1}, {baz: 2});
//=> {foo: 0, bar: 1, baz: 2}

// overwrites equal keys
objectAssign({foo: 0}, {foo: 1}, {foo: 2});
//=> {foo: 2}

// ignores null and undefined sources
objectAssign({foo: 0}, null, {bar: 1}, undefined);
//=> {foo: 0, bar: 1}

API

objectAssign(target, [source, ...])

Assigns enumerable own properties of source objects to the target object and returns the target object. Additional source objects will overwrite previous ones.

Resources


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
4.1.1