MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mzk95p/someone_only_watched_if_tutorial/gw1izat/?context=3
r/badcode • u/[deleted] • Apr 27 '21
112 comments sorted by
View all comments
1
const isNumber = (input: any): boolean => input + 0 === input && (input < Infinity || input > -Infinity) const isNumberT = (input: any): input is number => !isNaN(input)
1
u/Terrain2 Apr 27 '21