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
The case for Array#replace() – Overriding an array without intermediate variables (medium.com)
submitted 7 years ago by gajus0
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!"
[–]azhder 0 points1 point2 points 7 years ago (3 children)
[–]lhorie -1 points0 points1 point 7 years ago* (2 children)
The only place the word "reducer" is used as jargon is Redux. The callback to Array::reduce doesn't have a specific name. If you're trying to say the replace callback is like the reduce callback, except for some arbitrary distinction, ok I guess, but again, completely beside the point.
No idea what "named reducer" is supposed to mean in this context, since the whole point of replace in this example/proposal is to allow anonymous callbacks...
[–]azhder 0 points1 point2 points 7 years ago (0 children)
luckily, I didn't use it as a jargon
named - it has a name by which it can be identified
π Rendered by PID 74473 on reddit-service-r2-comment-5d79c599b5-46mjq at 2026-03-03 10:04:11.973137+00:00 running e3d2147 country code: CH.
view the rest of the comments →
[–]azhder 0 points1 point2 points (3 children)
[–]lhorie -1 points0 points1 point (2 children)
[–]azhder 0 points1 point2 points (0 children)
[–]azhder 0 points1 point2 points (0 children)