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: get, getAll. Similar: get, set, remove.
iterable.getAll(x, is); // x: an iterable // is: indices (sorted)
const iterable = require("extra-iterable"); var x = [2, 4, 6, 8]; [...iterable.getAll(x, [1, 2])]; // [ 4, 6 ] [...iterable.getAll(x, [1, 3])]; // [ 4, 8 ]