-
Notifications
You must be signed in to change notification settings - Fork 0
getAll
Subhajit Sahu edited this page Dec 22, 2022
·
16 revisions
Get values at keys.
Alternatives: get, getAll, getPath.
Similar: get, set, remove.
function getAll(x, ks)
// x: ientries
// ks: keys
const ientries = require('extra-ientries');
var x = [["a", 2], ["b", 4], ["c", 6], ["d", 8]];
ientries.getAll(x, ["b", "d"]);
// → [ 4, 8 ]
ientries.getAll(x, ["e"]);
// → [ undefined ]