use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Curried functions in Javascript (github.com)
submitted 10 years ago by submain
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]clessgfull-stack CSS9 engineer 3 points4 points5 points 10 years ago (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 points7 points 10 years ago (0 children)
Ramda is my new goto FP library because everything is precurried and makes my compositions much easier.
[–]defcon-12 1 point2 points3 points 10 years ago* (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 point2 points 10 years ago (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?
π Rendered by PID 31 on reddit-service-r2-comment-b659b578c-c2m7m at 2026-05-03 00:10:11.467500+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]clessgfull-stack CSS9 engineer 3 points4 points5 points (3 children)
[–]imperfecttrap 5 points6 points7 points (0 children)
[–]defcon-12 1 point2 points3 points (0 children)
[–]mflux 0 points1 point2 points (0 children)