Re:React Native for Windows and Mac
by bryanrasmussen on Wednesday May 13, 2020 @09:59AM
(#23166927)
no, isNaN has been in the language for quite a while, num !== num has been in the language forever.
which actually if I look at number-is-nan it returns
return typeof value === 'number' && value !== value;
I never use the typeof value === 'number' myself because I always know if what I'm checking is NaN should be a number of not, but probably that's a bad habit to get into.
which actually if I look at number-is-nan it returns
return typeof value === 'number' && value !== value;
I never use the typeof value === 'number' myself because I always know if what I'm checking is NaN should be a number of not, but probably that's a bad habit to get into.