Open nmsn opened 1 year ago
function curry(fn, ...args) { return fn.length <= args.length ? fn(...args) : (...newArgs) => curry(fn, ...args, ...newArgs); }