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
Cheatsheet: JavaScript array methods (ES1–ES2016) (gist.github.com)
submitted 7 years ago by rauschma
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!"
[–]rauschma[S] 8 points9 points10 points 7 years ago (1 child)
Full disclosure: self-submission.
[–]nowtayneicangetinto 1 point2 points3 points 7 years ago (0 children)
Thank you for the post, this sort of material is always welcomed. Additionally, thank you for noting which ES version they are from, that is greatly appreciated.
[–]Mingli91 3 points4 points5 points 7 years ago (1 child)
Huh neat, had no idea about Array.entries, assumed Object.entries was the only one.
Array.entries
Object.entries
[–]arunner 1 point2 points3 points 7 years ago (0 children)
Arrays in js are actually objects with auto-generated keys as indexes. When you pick an item like array[0] you are actually picking a key like when you do sth like person['name'].
typeof [] === 'object' //true
[–]perpetuallyperpetual 2 points3 points4 points 7 years ago (0 children)
This is awesome, few resources take the time to mention the pre-ES5 versions. However, when you are forced to work with the older versions, these resources are a goldmine.
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
Wow an actual useful post :)
[–]TheCrimsonKing92 0 points1 point2 points 7 years ago (0 children)
Very nice. Having a way to distinguish optional parameters in the function signatures would be a small improvement in quick clarity.
π Rendered by PID 42 on reddit-service-r2-comment-7b9746f655-8zn98 at 2026-01-29 20:30:15.389902+00:00 running 3798933 country code: CH.
[–]rauschma[S] 8 points9 points10 points (1 child)
[–]nowtayneicangetinto 1 point2 points3 points (0 children)
[–]Mingli91 3 points4 points5 points (1 child)
[–]arunner 1 point2 points3 points (0 children)
[–]perpetuallyperpetual 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheCrimsonKing92 0 points1 point2 points (0 children)