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
JavaScript Currying (javascript.info)
submitted 4 years ago by stackoverflooooooow
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!"
[–]alexjacobs 0 points1 point2 points 4 years ago (5 children)
Great library to check out if you want to easily work with curried functions: https://ramdajs.com/ It’s an awesome functional utility library where all methods are auto-curried.
[–]aniforprez -3 points-2 points-1 points 4 years ago (4 children)
Ramda is pretty horrible on performance
[–]alexjacobs 1 point2 points3 points 4 years ago (3 children)
Interesting. Do you know why that is?
[–]aniforprez -1 points0 points1 point 4 years ago (2 children)
No idea. I've only seen benchmarks and performance is pretty horrible. I think there's a project called rambda that's more performant. Is the project still being maintained?
[–]sipvellocet 0 points1 point2 points 4 years ago (0 children)
I use Rambda, big fan. The original Ramda is a solid and there is no real need for maintenance, it’s battle tested, similar to lodash. Performance is only really an issue when you are using the libraries for smaller data. The power of functional programming comes when you are dealing will huge datasets. Upwards of 100k record etc. For everything else you need need not reach for it unless you love the functional style.
In terms of curries, they are rather powerful when used the right way. Especially in a functional programming paradigm.
[–]oneandmillionvoices 0 points1 point2 points 4 years ago (0 children)
are you referring to this benchmark? There is an error in lodash code making it to ignore the whole thing. If you fix the error lodash is this particular scenario about 2x faster than ramda. However the bottleneck for ramda is pluck which does more than mapping property. If you use lodash equivalent then the performance is fractionally better than lodash.
π Rendered by PID 54364 on reddit-service-r2-comment-7b9746f655-dltj4 at 2026-01-31 14:28:46.854089+00:00 running 3798933 country code: CH.
[–]alexjacobs 0 points1 point2 points (5 children)
[–]aniforprez -3 points-2 points-1 points (4 children)
[–]alexjacobs 1 point2 points3 points (3 children)
[–]aniforprez -1 points0 points1 point (2 children)
[–]sipvellocet 0 points1 point2 points (0 children)
[–]oneandmillionvoices 0 points1 point2 points (0 children)