Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am paddyo on github.
* I am paddyo (https://keybase.io/paddyo) on keybase.
* I have a public key ASB9Lq1I_WPQFEoQ3jNJqG67GL20m4_ZG2gNO8GvtKHtjAo
To claim this, I am signing this object:
function curry(fn, args = []) {
return function(...x) {
let argsn = [...args, ...x];
if(argsn.length >= fn.length) {
return fn(...argsn);
}
return curry(fn, argsn);
}
}