Answers for "how to check if nan in js"

7

javascript check if is nan

function isNaN(x) {
   return x !== x;
};
isNaN(NaN);//true
Posted by: Guest on August-05-2019
1

check if value is NaN

Number.isNaN(123)
Posted by: Guest on December-17-2020

Browse Popular Code Answers by Language