getAll - nodef/extra-array GitHub Wiki
Get values at indices.
Alternatives: get, getAll, getPath.
Similar: get, set, remove.
function getAll(x, is)
// x: an array
// is: indices
const xarray = require('extra-array');
var x = [2, 4, 6, 8];
xarray.getAll(x, [1, 2]);
// → [ 4, 6 ]
xarray.getAll(x, [1, 3]);
// → [ 4, 8 ]
References