This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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