Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if infinity


Number.isFinite(Infinity);  // false
Number.isFinite(NaN);       // false
Number.isFinite(-Infinity); // false

Number.isFinite(0);         // true
Number.isFinite(2e64);      // true

// ONLY values of type number AND are finite return true.
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #check #infinity
ADD COMMENT
Topic
Name
9+9 =