Skip to content

at

at(array, offset)

Returns the value at the specified offset.

ts
at([1, 2, 3], -1); // 3
ts
pipe([1, 2, 3], at(-1)); // 3