arrays-to-object
v1.0.0
Published
Transform nested arrays into an object.
Downloads
72
Readme
arrays-to-object
Transform nested arrays into an object.
Installation
npm install arrays-to-object
Usage
var arraysToObject = require('arrays-to-object')
var arr = [
['foo', 'bar'],
['baz', 'qux'],
[1, 'one'],
[2, 'two']
]
arraysToObject(arr)
// {
// foo: 'bar',
// baz: 'qux',
// 1: 'one',
// 2: 'two'
// }