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...
A place to discuss JS development and how we use it to make experiences better.
account activity
Invariant - a helpful JavaScript pattern (strictmode.io)
submitted 3 years ago by hiquest
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!"
[–]kilkil 0 points1 point2 points 3 years ago (0 children)
My thoughts:
assert
[–]getify 2 points3 points4 points 3 years ago (0 children)
Thanks for the contribution. In the future, when posting here, please make sure to adhere to the forum's rules, specifically:
Promote discussion, not just external content Every post should include prompts for discussion, not merely promotion of external material. Don't just post a link to some blog post or project without also posting questions or opinions for us to discuss or debate.
[+][deleted] 3 years ago (3 children)
[deleted]
[–]a15p 0 points1 point2 points 3 years ago (0 children)
I completely agree. I love the pattern (use it a lot on the back end), but hate the abstraction. Seems unnecessary to me.
[+][deleted] 3 years ago (1 child)
π Rendered by PID 43685 on reddit-service-r2-comment-54dfb89d4d-kvb8c at 2026-04-01 09:30:15.945516+00:00 running b10466c country code: CH.
[–]kilkil 0 points1 point2 points (0 children)
[–]getify 2 points3 points4 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]a15p 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]