curry() function
f의 커리된 함수를 반환합니다.
Signature:
typescript
declare function curry<F extends (...args: any[]) => any>(f: F): Curry<F>;Example
ts
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