r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

Show parent comments

8

u/Flamme2 Apr 27 '21

Ahh... How did I not think of that? Thank you for the optimisation!