fill-keys

WebJar for fill-keys

License

License

MIT
Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

fill-keys
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

fill-keys
WebJar for fill-keys
Project URL

Project URL

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

Source Code Management

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

Download fill-keys

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : is-object jar [1.0.1,1.1)
org.webjars.npm : merge-descriptors jar [1.0.0,1.1)

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0.2