Skip to content
Subhajit Sahu edited this page May 19, 2020 · 23 revisions

Gets value at index. 🏃 📼 📦 🌔 📒

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

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