fill-keys

WebJar for fill-keys

Лицензия

Лицензия

MIT
Категории

Категории

KeY Данные Data Formats Formal Verification
Группа

Группа

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

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

fill-keys
Последняя версия

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

1.0.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

fill-keys
WebJar for fill-keys
Ссылка на сайт

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

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

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

https://github.com/bendrucker/fill-keys

Скачать fill-keys

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : is-object jar [1.0.1,1.1)
org.webjars.npm : merge-descriptors jar [1.0.0,1.1)

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

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

fill-keys Build Status Greenkeeper badge

Fill keys in a destination that are defined on the source. Copies descriptors so properties like enumerable will persist.

Install

$ npm install --save fill-keys

Usage

var fillKeys = require('fill-keys');

fillKeys(destination, source);
//=> missing destination keys in source are copied

fill-keys will copy descriptors. It will also copy the source.prototype properties onto destination.prototype if both destination and source are functions.

API

fillKeys(destination, source) -> destination

destination

Required
Type: any

The destination object where keys from source will be added.

source

Required
Type: any

The source object from which to copy properties.

fillKeys.es3(destination, source) -> destination

An ES3-compatible version of fillKeys. Behavior is identical but simple assignment is used instead of Object.defineProperty.

License

MIT © Ben Drucker

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

Версия
1.0.2