We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Convert lists to map.
Similar: from, fromLists, fromKeys, fromValues.
function fromLists(x) // x: lists, i.e. [keys, values]
const map = require('extra-map'); var ls = [['a', 'b', 'c'], [1, 2, 3]]; map.fromLists(ls); // → Map(3) { 'a' => 1, 'b' => 2, 'c' => 3 }