JavaScript interview: Implement curry
medium
closures
functions
Write curry(fn). Keep collecting arguments until you have fn.length of them, then call fn with all of them. Any grouping of the calls should work.
Your code
Runs in a Web Worker in your browser. Tests use real timers, so a run takes a second or two.