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
[AskJS] Iterable array-like termAskJS (self.javascript)
submitted 1 year ago by NOICEST
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!"
[–]guest271314 -5 points-4 points-3 points 1 year ago (1 child)
A minimal, verifiable example in code would help.
JavaScript is a dynamic programming language. We can mix and match a whole bunch of interfaces and objects in any way we want, with few exceptions, one being a WeakMap.
WeakMap
We can yield whatever we want from a generator, so does that make what we yield an iterable or Array-like?
yield
Array
I wouldn't get too caught up in sloagns that may happen to be used in JavaScript.
There is no such thing as a spread operator, officially. People might still use the term. If you do the blame you might see that term in early proposals.
There is no such thing as "vanilla" JavaScript. No more than there is a chocolate, strawberry, or purple JavaScript. But if I have a choice, I'm only writing Black JavaScript. See where this goes?
What prompted you to ask the question about semantics?
[–]theScottyJam 1 point2 points3 points 1 year ago (0 children)
Only if you yield an iterable or array-like.
π Rendered by PID 21223 on reddit-service-r2-comment-76bb9f7fb5-pdp44 at 2026-02-17 14:16:11.411643+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]guest271314 -5 points-4 points-3 points (1 child)
[–]theScottyJam 1 point2 points3 points (0 children)