at (Functional Programming) es-toolkit
Creates a function that returns the values at the given indices. Use it with pipe.
Info
Usage
at reads values from the piped array at each index in indices. Negative indices count from the end, matching Array.prototype.at.
Parameters
indicesnumber[]required
The indices to read from the piped array.
Returns
A function that maps a readonly T[] to the selected values.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.