fromEntries - nodef/extra-lists GitHub Wiki

Convert lists to entries.

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

var es = ['a', 1], ['b', 2], ['c', 3](/nodef/extra-lists/wiki/'a',-1],-['b',-2],-['c',-3);
xlists.fromEntries(es).map(c => [...c]);
// → [ [ 'a', 'b', 'c' ], [ 1, 2, 3 ] ]

References