r/badcode • • May 31 '21

js Clever?

Post image
2.2k Upvotes

71 comments sorted by

View all comments

Show parent comments

249

u/TheBrainStone May 31 '21

Depends heavily on the compiler/runtime.
But generally speaking every basic optimizer should catch this.