Skip to content

fromEntries

Subhajit Sahu edited this page Dec 28, 2022 · 5 revisions

Convert ilists to entries.


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

var es = [['a', 1], ['b', 2], ['c', 3]];
xilists.fromEntries(es).map(c => [...c]);
// → [ [ 'a', 'b', 'c' ], [ 1, 2, 3 ] ]


References

Clone this wiki locally