Skip to content

fromLists

Subhajit Sahu edited this page Jun 11, 2020 · 11 revisions

Creates object from lisst. 🏃 📼 📦 🌔 📒

Similar: [fromEntries], [fromLists].

object.fromLists(ls);
// ls: lists, i.e. [keys, values]
const object = require('extra-object');

var ls = [['a', 'b', 'c'], [1, 2, 3]];
object.fromLists(ls);
// { a: 1, b: 2, c: 3 }

references

Clone this wiki locally