Is Finite
The isFinite() Method
The global isFinite()
method returns false
if the argument is Infinity
or NaN
.
Otherwise it returns true
:
Example
isFinite(10/0); // returns false
isFinite(10/1); // returns true
The global isFinite()
method returns false
if the argument is Infinity
or NaN
.
Otherwise it returns true
:
isFinite(10/0); // returns false
isFinite(10/1); // returns true