-
Notifications
You must be signed in to change notification settings - Fork 0
fromLists
Subhajit Sahu edited this page Dec 22, 2022
·
14 revisions
Convert lists to ientries.
function fromLists(x)
// x: lists, i.e. [keys, values]
const ientries = require('extra-ientries');
var x = [["a", "b", "c"], [1, 2, 3]];
[...ientries.fromLists(x)];
// → [ [ "a", 1 ], [ "b", 2 ], [ "c", 3 ] ]