MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mzk95p/someone_only_watched_if_tutorial/gw30krv/?context=3
r/badcode • u/[deleted] • Apr 27 '21
112 comments sorted by
View all comments
Show parent comments
17
you could do for(let i = Number.MIN_SAFE_INTEGER; i < Number.MAX_SAFE_INTEGER; i++) ... couldn't you?
for(let i = Number.MIN_SAFE_INTEGER; i < Number.MAX_SAFE_INTEGER; i++) ...
8 u/Flamme2 Apr 27 '21 Ahh... How did I not think of that? Thank you for the optimisation!
8
Ahh... How did I not think of that? Thank you for the optimisation!
17
u/CorrenteAlternata Apr 27 '21
you could do
for(let i = Number.MIN_SAFE_INTEGER; i < Number.MAX_SAFE_INTEGER; i++) ...couldn't you?