Skip to content
Subhajit Sahu edited this page Dec 5, 2022 · 13 revisions

Get values at keys.

Similar: get, getAll, getPath.
Similar: get, set, remove.


function getAll(x, ks)
// x:  a map
// ks: keys
const map = require('extra-map');

var x = new Map([['a', 2], ['b', 4], ['c', 6], ['d', 8]]);
map.getAll(x, ['b', 'd']);
// → [ 4, 8 ]

map.getAll(x, ['e']);
// → [ undefined ]


References

Clone this wiki locally