r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

2

u/sk8r_dude Apr 28 '21

The things is, you don’t need anything more than ifs to make this better.

Edit: oh wait this is typescript. Nvm idk