Answers for "javascript what type is nan"

1

how to check when a number varibal = nan in ts

if (isNaN(number)) {
      number = 0;
}
Posted by: Guest on December-23-2020
6

javascript check if is nan

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

nan in js

var val = Number.NaN;
Posted by: Guest on August-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language