Skip to content

fromEntries

Subhajit Sahu edited this page Dec 8, 2022 · 10 revisions

Convert entries to object.

Similar: fromEntries, fromLists.


function fromEntries(x)
// x: entries
const object = require('extra-object');

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


References

Clone this wiki locally