curry
curry() function
Returns a curried function of f
declare function curry<F extends (...args: any[]) => any>(f: F): Curry<F>;
Example
const add = (a: number, b: number): number => a + b
const curried = curry(add)
const add10 = curried(10)
console.log(add10(5)) // 15
console.log(curried(3, 4)) // 7