Favorites

JavaScript Number.isFinite() Method

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
Number.isFinite()
JavaScript Number Static methodThis method is supported by all modern browsers.
Updated 28th November 2026

The Number.isFinite() static method checks whether a value is a finite number, without converting other types to numbers first.

Description

The Number.isFinite() static method returns true only if the value is a number that is neither Infinity, -Infinity nor NaN. Unlike the global isFinite(), it doesn't convert its argument, so Number.isFinite('5') is false.

It's useful for validating numeric input after conversion: Number.isFinite(Number(input)) is true only for real, finite numbers, rejecting empty results such as NaN as well as overflows to Infinity.

BigInts aren't of type number, so Number.isFinite(10n) is false. Like other static members of Number, it is called on the Number constructor itself, not on individual number values.

Syntax

Number.isFinite(value)

Parameters

  • valueThe value to check.

Return Value

true if the value is a finite number, otherwise false.

Example

console.log(Number.isFinite(42));
console.log(Number.isFinite(1 / 0));
console.log(Number.isFinite('42'));
console.log(isFinite('42'));

Browser Support

The following information will show you the current browser support for the Number.isFinite() method. Hover over a browser icon to see the version that first introduced support for this method.

This method is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee