npm.io
0.1.2 • Published 5 years ago

fast-zipobject

Licence
MIT
Version
0.1.2
Deps
0
Size
21 kB
Vulns
0
Weekly
0
Stars
1

fast-zipobject

npm version downloads per week bundle size fast-zipobject is released under the MIT license.

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 }