Curries a function to allow partial application of its arguments.
The original function to curry
A curried version of the function
const add = curry((a: number, b: number) => a + b);add(1)(2); // 3 Copy
const add = curry((a: number, b: number) => a + b);add(1)(2); // 3
Curries a function to allow partial application of its arguments.