Search
 
SCRIPT & CODE EXAMPLE
 

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.
Comment

PREVIOUS NEXT
Code Example
Javascript :: next js next/head head 
Javascript :: react native run on specific emulator 
Javascript :: how to prepare key in object dyamically javascript 
Javascript :: autoplay video in angular 
Javascript :: javascript array remove element 
Javascript :: js remove json value duplicates 
Javascript :: html to pdf node js background color 
Javascript :: breaking from a labeled while loop js 
Javascript :: 11.10*15.1667 
Javascript :: add 2 microseconds to Date() js 
Javascript :: Codewars hello world 
Javascript :: how to understand if nodejs is out of memory 
Javascript :: regex to remove spaces 
Javascript :: regular expression to validate if the given input is valid Indian mobile number or not 
Javascript :: angular input force uppercase 
Javascript :: js change url in address bar 
Javascript :: javascript uppercase first letter of each word 
Javascript :: vscode tab size 
Javascript :: how to revers bulain in js 
Javascript :: newtonsoft json deserialize c# example 
Javascript :: current datetime js 
Javascript :: remove all chars from string and leave only numbers javascript 
Javascript :: how to change the font family using jquery 
Javascript :: js 1d index to 2d coord 
Javascript :: REPLACE BROKEN IMAGES WITH A DEFAULT IMAGE 
Javascript :: fill array with 0 javascript 
Javascript :: settimestamp discord.js 
Javascript :: how to get id from url in javascript 
Javascript :: nodejs write raw buffer to file 
Javascript :: javascript go to url 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =