ES6 - Number.isFinite()


Advertisements


The Number.isFinite() method determines whether the passed value is a finite number.

Syntax

var res = Number.isFinite(value);

Parameter Details

Value to be tested for finiteness.

Return Value

Returns a Boolean value, true or false.

Example

var res = Number.isFinite(10); 
console.log(res);  

Output

true

es6_number.htm

Advertisements