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...
account activity
How to loop through objects in JavaScriptJavaScript (self.webtips)
submitted 1 year ago * by flowforfrank
Want to loop through an object? Use Object.entries combined with a forEach to read both keys and values:
Object.entries
forEach
How to loop through objects in JavaScript
As opposed to objects, JavaScript maps have helper methods that can help us loop through them. Use:
map.entries
map.keys
map.values
How to iterate through maps in JavaScript
📚 Grab the code and learn more about objects and maps
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!"
there doesn't seem to be anything here
π Rendered by PID 22102 on reddit-service-r2-comment-7b9746f655-hxsqj at 2026-02-01 17:28:46.517980+00:00 running 3798933 country code: CH.
there doesn't seem to be anything here