isFinite

Evaluates the argument to determine whether it is a finite number.

Core function

Syntax

isFinite( number )

Parameters

Parameter Description
number The number to evaluate.

Description

isFinite is a top-level function and is not associated with any object.

You can use this method to determine whether a number is a finite number. The isFinite method examines the number in its argument. If the argument is NaN, positive infinity or negative infinity, this method returns false; otherwise, it returns true.

Examples

You can check client input to determine whether it is a finite number.

See also

Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.