4 ms·
You can check yourself if a value is NaN // NaN typeof is ... number typeof value === 'number' && value != value btw, the original isNaN() doesn't che
by riquito 14y ago
You can check yourself if a value is NaN
// NaN typeof is ... number
typeof value === 'number' && value != value
btw, the original isNaN() doesn't check if a value is NaN, it checks if a value is coercible to a number
> isNaN("hello world")
true