Closed rkichenama closed 7 years ago
As written previously, it would take only the first passed parameter in the currying calls. This update concats all passed parameters to prevArgs. Also sprinkles more ES6 sugar.
prevArgs
Yes, I promise I've read the Contributions Guidelines (please feel free to remove this line).
The curry only taking one param is on purpose, see the discussion of loose currying later in the chapter.
Closing for now. If I'm missing something, please let me know. :)
As written previously, it would take only the first passed parameter in the currying calls. This update concats all passed parameters to
prevArgs
. Also sprinkles more ES6 sugar.Yes, I promise I've read the Contributions Guidelines (please feel free to remove this line).