object-assign

WebJar for object-assign

Лицензия

Лицензия

MIT
Категории

Категории

Github Инструменты разработки Контроль версий
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

github-com-sindresorhus-object-assign
Последняя версия

Последняя версия

4.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

object-assign
WebJar for object-assign
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

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

Скачать github-com-sindresorhus-object-assign

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
4.1.1