zip-object

WebJar for zip-object

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

zip-object
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

zip-object
WebJar for zip-object
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/scottcorgan/zip-object

Download zip-object

How to add to project

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

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.

zip-object

Create an object from from arrays of keys and values. (Inspired by lodash's _.zipObject)

Install

npm install zip-object --save

Usage

Either takes two arrays or an array of arrays as the argument(s).

var zipObject = require('zip-object');
var zipped = zipObject(['key1', 'key2'], ['value1', 'value2']);

console.log(zipped.key1); // outputs 'value1'
console.log(zipped.key2); // outputs 'value2'

Run Tests

npm install
npm test

Versions

Version
0.1.0