API Reference

Returns a curried version of a function

function curry<T extends (...args: any[]) => any>(func: T): CurryFunction<T>

// Example:

const addThreeNumbers = (n1: number, n2: number, n3: number) => n1 + n2 + n3

const curriedAdd3 = curry(addThreeNumbers)

curriedAdd3(1)(2)(3) //=> 6