Feb 25, 2017 · 1 min read
// Tiny, recursive autocurry
const curry = (
f, arr = []
) => (...args) => (
a => a.length === f.length ?
f(...a) :
curry(f, a)
)([...arr, ...args]);Hi, great post!
What is the a here? I tried throwing a log here but a was undefined once I put this in between curly brackets. Is a the passed in ...args?
Thanks!
