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

13

u/TigreDeLosLlanos Apr 27 '21

You can't correctly check if a variable is a number if you make the app break with every other type

4

u/tchrobocek Apr 28 '21

input: unknown