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