Name
isFinite( ) — determine whether a number is finite
Availability
JavaScript 1.2; JScript 3.0; ECMAScript v1
Synopsis
isFinite(n
)
Arguments
-
n
The number to be tested.
Returns
true
if n
is (or can be
converted to) a finite number or false
if
n
is NaN
(not a number)
or positive or negative infinity.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.