takeRight (Functional Programming) es-toolkit
Creates a function that returns values from the end of an array. Use it with pipe.
Info
Usage
takeRight returns the last count values from the piped array.
Parameters
countnumberrequired
The number of values to take from the end.
Returns
A function that maps a readonly T[] to the last count 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.