curryRight es-toolkit
Curries a function from right to left so it can be called with one argument at a time.
Usage
curryRight(func)
Use curryRight when you want to partially apply a function from right to left. Unlike regular curry, it receives arguments starting from the last one.
This is useful when applying arguments from right to left feels more natural.
Parameters
func(...args: any[]) => anyrequired
The function to curry.
Returns
A curried function that can be called with one argument at a time from right to left.
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.