isFinite()
Previous Top Next
isFinite( value )
Returns true if the value passed is a finite number.
Parameters
Usage
Previous Top Next
isFinite( value )
Returns true if the value passed is a finite number.
Parameters
value |
the value to be evaluated |
Usage
function main() { var myVar; ... ... if ( ! isFinite( myVar ) ) { //the variable myVar does not contain a finite number //so take some action } }