@f/zip-obj
v1.1.1
Published
Create an object from a list of keys and values.
Downloads
36
Readme
zip-obj
Create an object from a list of keys and values.
Installation
$ npm install @f/zip-obj
Usage
var zipObj = require('@f/zip-obj')
zipObj([1, 2], [1, 2]) // => {1: 1, 2: 2}
API
zipObj(keys, values)
keys
- list of keys for new objectvalues
- list of values for new object
Returns: object with keys
and values
License
MIT