An open API service indexing awesome lists of open source software.

https://github.com/afeiship/next-zip-object

Merge two array to an object.
https://github.com/afeiship/next-zip-object

merge next object zip

Last synced: about 2 months ago
JSON representation

Merge two array to an object.

Awesome Lists containing this project

README

          

# next-zip-object
> Merge two array to an object.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-zip-object
```

## usage
```js
import '@jswork/next-zip-object';

const ar1 = ['a', 'b'];
const ar2 = [1, 2];
const res = nx.zipObject(ar1, ar2);

// { a: 1, b: 2 }
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-zip-object/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-zip-object
[version-url]: https://npmjs.org/package/@jswork/next-zip-object

[license-image]: https://img.shields.io/npm/l/@jswork/next-zip-object
[license-url]: https://github.com/afeiship/next-zip-object/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-zip-object
[size-url]: https://github.com/afeiship/next-zip-object/blob/master/dist/next-zip-object.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-zip-object
[download-url]: https://www.npmjs.com/package/@jswork/next-zip-object