Skip to content
Subhajit Sahu edited this page Dec 28, 2022 · 16 revisions

Gets values at keys.

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


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

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

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


References

Clone this wiki locally