curry es-toolkit
Curries a function so it can be called with one argument at a time.
Usage
curry(func)
Use curry when you want to partially apply a function. The curried function returns a new function until it receives all required arguments. Once all arguments are provided, the original function is executed.
This is useful for creating reusable functions.
Parameters
func(...args: any[]) => anyrequired
The function to curry.
Returns
A curried function that can be called with one argument at a time.
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.