list-object

0.1.0 • Public • Published

list-object

Create an object from a list of [key, value] tuples.

Usage

var listObject = require('list-object');
 
listObject();
//=> {}
 
listObject([['a', 1], ['b', 2]]);
//=> {a: 1, b: 2}

(see test/test.js for more examples)

Readme

Keywords

Package Sidebar

Install

npm i list-object

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • zertosh