Standard built-ins
Global isFinite()
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
| Name | Type | Description |
|---|---|---|
| value | any | Input converted to Number. |
Return Value
boolean
Whether the coerced Number is finite.
Working Example
Example Snippetjavascript
console.log(isFinite("5"),isFinite(Infinity));