Currying with JavaScript
Currying with JavaScript
There are a few ways to implement currying. I’m not exactly sure if they all fit exactly into the definition of currying. Nevertheless I will collect different curry methods in this page.
Variadic Arity Currying This version of the curry function works with any function arity. The returned curried function will take as many parameters as is passed into it at a time.
One of the bad sides of this curry method is that it will not give any warning if it’s called with too many arguments.
read more