Need private packages and team management tools?Check out npm Teams »

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)

Keywords

Install

npm i list-object

DownloadsWeekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • avatar