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.
- Host: GitHub
- URL: https://github.com/afeiship/next-zip-object
- Owner: afeiship
- License: mit
- Created: 2021-06-05T06:52:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T07:08:11.000Z (about 5 years ago)
- Last Synced: 2025-10-24T08:56:07.351Z (8 months ago)
- Topics: merge, next, object, zip
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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