Skip to content
Subhajit Sahu edited this page Feb 3, 2021 · 23 revisions

Gets value at index. 🏃 📼 📦 🌔 📒

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

iterable.get(x, i);
// x: an iterable
// i: index
const iterable = require("extra-iterable");

var x = [2, 4, 6, 8];
iterable.get(x, 1);
// 4

iterable.get(x, 3);
// 8

references

Clone this wiki locally