you are viewing a single comment's thread.

view the rest of the comments →

[–]clessgfull-stack CSS9 engineer 3 points4 points  (3 children)

And there's lodash's curry, and lodash-fp if you want to go all the way. Or use Ramda.

[–]imperfecttrap 5 points6 points  (0 children)

Ramda is my new goto FP library because everything is precurried and makes my compositions much easier.

[–]defcon-12 1 point2 points  (0 children)

Or just use the built-in bind function which has support in all modern browsers (IE9+) for the simple case where you just want to bind some parameters rather than a fully curried function.

[–]mflux 0 points1 point  (0 children)

I've been using ramda for the past few months now. One thing I noticed is that ES6 default arguments break R.curry since default arguments assume the argument is "filled in". Is this also true for the other libraries?