-
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: entries
// ks: keys
const entries = require('extra-entries');
var x = [["a", 2], ["b", 4], ["c", 6], ["d", 8]];
entries.getAll(x, ["b", "d"]);
// → [ 4, 8 ]
entries.getAll(x, ["e"]);
// → [ undefined ]