We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Gets value at indices (+ve, -ve).
Alternatives: [one], [all], [fractional].
array.getAll(x, is); // x: an array // is: indices (-ve: from right) // --> [...values]
const array = require('extra-array'); var x = [2, 4, 6, 8]; array.getAll(x, [1, 2]); // [4, 6] array.getAll(x, [-1, -2]); // [8, 6]
There was an error while loading. Please reload this page.