Standard built-ins

Global isFinite()

Try the free JavaScript compiler

Converts its input to Number before testing finiteness. Numeric strings and null may pass; Symbol and BigInt conversion can throw. Use Number.isFinite when type is part of the input contract.

Formal Syntax & Structure

javascript syntaxjavascript
isFinite(value)

Parameters & Attributes

NameTypeDescription
valueanyInput converted to Number.

Return Value

boolean

Whether the coerced Number is finite.

Working Example

Example Snippetjavascript
console.log(isFinite("5"),isFinite(Infinity));
JavaScript Reference