DEV Community

Discussion on: difference between isNaN and Number.isNaN

Collapse
 
somedood profile image
Basti Ortiz • Edited

According to MDN...

The Number.isNaN() method determines whether the passed value is NaN and its type is Number. It is a more robust version of the original, global isNaN().

The differences are described further here.