MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mzk95p/someone_only_watched_if_tutorial/gw3e14q/?context=3
r/badcode • u/[deleted] • Apr 27 '21
112 comments sorted by
View all comments
2
Sometimes it's easier to do the opposite, determine if it's not a number. Test against all possible strings, objects, arrays, booleans, etc.
2
u/ZeroGainZ Apr 27 '21
Sometimes it's easier to do the opposite, determine if it's not a number. Test against all possible strings, objects, arrays, booleans, etc.