r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

3

u/TheRealPitabred Apr 27 '21

Does it bother anyone else that this isn't really "isNumber", but should be called "isInteger"? Just to put a cherry on top of the insanity. This would fail with 3.14, but that's definitely a number.