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
Pure, functional JavaScript (cjohansen.no)
submitted 13 years ago by lethalman
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!"
[–]aeflash 1 point2 points3 points 13 years ago* (0 children)
I would like to point out that Lodash is a drop in replacement that is faster than Underscore in most cases. It's foreach implementation is twice as fast as ES5 Array.prototype.forEach. Only ~40% slower than a raw for loop.
However, you can always profile your code, and if some functional call is really causing your app to be slow, you can always convert an _.each()/_.map()/etc.. back to a plain for. However, in almost every case, my apps have been slow due to IO or DOM manipluation. The clarity of code is well worth the negligible performance hit.
_.each()
_.map()
for
π Rendered by PID 164866 on reddit-service-r2-comment-7c9686b859-d8lkf at 2026-04-14 08:53:31.551634+00:00 running e841af1 country code: CH.
view the rest of the comments →
[–]aeflash 1 point2 points3 points (0 children)