DEV Community

Neo
Neo

Posted on

difference between isNaN and Number.isNaN

Top comments (1)

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.