-
Notifications
You must be signed in to change notification settings - Fork 3
getAll
Subhajit Sahu edited this page Jun 29, 2020
·
6 revisions
Gets values at keys. 🏃 📼 📦 🌔 📒
Alternatives: get, getAll, getPath.
Similar: get, set, remove.
object.getAll(x, ks);
// x: an object
// ks: keysconst object = require('extra-object');
var x = {a: 2, b: 4, c: 6, d: 8};
object.getAll(x, ['b', 'c']);
// [ 4, 6 ]
object.getAll(x, ['e']);
// [ undefined ]