Package Exports
- zip-object
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zip-object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
zip-object
Create an object from from arrays of keys and values. (Inspired by lodash's _.zipObject)
Install
npm install zip-object --save
Usage
Either takes two arrays or an array of arrays as the argument(s).
var zipObject = require('zip-object');
var zipped = zipObject(['key1', 'key2'], ['value1', 'value2']);
console.log(zipped.key1); // outputs 'value1'
console.log(zipped.key2); // outputs 'value2'
Run Tests
npm install
npm test