Easy Tutorial
❮ Prop Text Form Prop Tablerow Choff ❯

JavaScript Number.isFinite() Method

JavaScript Number Object

Example

Detect if the parameter is infinite:


Definition and Usage

The isFinite() function is used to detect if the specified parameter is infinite.

Note: If the number is NaN (Not-A-Number), or is positive or negative infinity, it returns false.

Number.isFinite() differs from the global isFinite() function, as the global isFinite() converts the tested value to a Number first, then tests it.

Number.isFinite() does not convert the tested value to a Number object; if the tested value is not of type Number, it returns false.


Browser Support

Method
Number.isFinite() 19 12.0 16 9 22

Syntax

Number.isFinite(value)

Parameter Values

Parameter Description
value The value to be tested.

Return Value

Type Description
Boolean Returns true if it is a finite number, otherwise returns false.

Technical Details

| JavaScript Version: | ECMAScript 6 | | --- | --- |

JavaScript Number Object

❮ Prop Text Form Prop Tablerow Choff ❯