fast-zipobject
v0.1.2
Published
<p> <a href="https://www.npmjs.com/package/fast-zipobject"><img src="https://badge.fury.io/js/fast-zipobject.svg" alt="npm version"></a> <a href="https://www.npmjs.com/package/fast-zipobject"><img src="https://img.shields.io/npm/dw/fast-zipobject" alt="do
Downloads
7
Readme
:package: :sparkles: fast-zipobject
Installation
yarn add fast-zipobject
Example
Simply call the function like you normally would using lodash. The function expect two arrays: one of property identifiers and one of corresponding values
import fastZipObject from 'fast-zipobject';
const obj = fastZipObject(['a', 'b'], [1, 2]);
// => { 'a': 1, 'b': 2 }