We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Gets values at indices. 🏃 📦 🌔
Alternatives: one, all, fractional.
array.getAll(x, is); // x: an array // is: indices (-ve: from right)
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]