Loading homepage
Extend currying to accept any number of arguments per call, while keeping partial applications reusable.
Input: curry((a, b, c) => a + b + c)(1, 2)(3) Output: 6
Input: const add = curry((a, b, c) => a + b + c); const one = add(1); [one(2, 3), one(4)(5)] Output: [6, 10]
Implement the exported function in index.js or index.ts. See requirements for edge cases.