objectize-arr
v0.1.0
Published
convert an array to object with given keys
Downloads
3
Readme
objectize-arr
convert an array to object with given keys
INSTALLATION
$ npm i objectize-arr
TEST
$ npm run test
QUICKSTART
const objectizeArr = require('objectize-arr')
objectizeArr(['a', 'b'])([1, 2]) // { a: 1, b: 2 }
objectizeArr(['a', ['b']])([1, [2]]) // { a: 1, b: 2 }