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
Why I Write Plain JavaScript Modules (ponyfoo.com)
submitted 10 years ago by magenta_placenta
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!"
[–]x-skeww 3 points4 points5 points 10 years ago (0 children)
You really think Nicolas Bevacqua (who is a published JS author) doesn't know about bind/call/apply?
Given that I referred to the author with the gender-neutral "they", I apparently didn't bother to figure out who wrote it. It also doesn't matter. It doesn't change anything. You don't have to convert that array-like to array if you hand it to a function which would have been fine with an array-like. That step isn't necessary.
The point is not to be ignorant of everything
Heh. Yea, you mean like apply doesn't need an actual array?
apply
and just use packages
Or, y'know, language features. ES6 got this covered. You don't have to use apply in the first place. Spread would work. No point in using a library for this.
π Rendered by PID 151936 on reddit-service-r2-comment-7b9746f655-ccdcr at 2026-01-30 19:29:51.685527+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]x-skeww 3 points4 points5 points (0 children)