list-object

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

Usage no npm install needed!

<script type="module">
  import listObject from 'https://cdn.skypack.dev/list-object';
</script>

README

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)