isFinite
Summary
Determines whether a supplied number is finite.
Syntax
isFinite(number)
- number
- Required. Any numeric value
Return Value
Returns true if number is any value other than NaN, -Infinity or Infinity. In those three cases, it returns false.
Examples
isFinite(); // false, because its NaN
isFinite(42); // true
isFinite(-Infinity); //false
isFinite(4 / 0); //false
See also
Other articles
Attributions
Microsoft Developer Network: Article