Answers for "javascript check i value is a number or nan"

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

Code answers related to "javascript check i value is a number or nan"

Browse Popular Code Answers by Language