MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/rk6xln/i_had_stoped/hp9vg79/
r/badcode • u/idontreallywolf • Dec 19 '21
64 comments sorted by
View all comments
Show parent comment
13
It's a very common way if doing it in JS
3 u/AnonymousSpud Dec 20 '21 im not saying its not well known or commonly used, im saying its not obvious, and that imo the more obvious way is generally better
3
im not saying its not well known or commonly used, im saying its not obvious, and that imo the more obvious way is generally better
View all comments
Show parent comment
13
u/Deadly_chef Dec 20 '21
It's a very common way if doing it in JS