Returns the element at the specified zero-based index from the source iterable.
Element type produced by the source iterable.
Source iterable to enumerate.
Zero-based index of the element to retrieve.
The value found at index.
index
Error When the iterable does not contain an element at the requested index.
const third = _elementAt(["a", "b", "c", "d"], 2);console.log(third); // "c" Copy
const third = _elementAt(["a", "b", "c", "d"], 2);console.log(third); // "c"
or using the curried version:
const third = pipeInto(["a", "b", "c", "d"], elementAt(2));console.log(third); // "c" Copy
const third = pipeInto(["a", "b", "c", "d"], elementAt(2));console.log(third); // "c"
Returns the element at the specified zero-based index from the source iterable.