Curries a function with a fixed number of arguments (supports rest parameters).
Number of arguments to curry.
Function to curry.
Curried function that supports rest parameters.
const add = (a: number, b: number, c: number) => a + b + c;const curried = curryN(3, add);curried(1)(2)(3); // 6curried(1, 2)(3); // 6 Copy
const add = (a: number, b: number, c: number) => a + b + c;const curried = curryN(3, add);curried(1)(2)(3); // 6curried(1, 2)(3); // 6
1.2.0
Curries a function with a fixed number of arguments (supports rest parameters).