Checks if value is a finite number.
value
The value to check.
Returns true if value is a finite number, false otherwise.
true
false
const value1 = 100;const value2 = Infinity;const value3 = '100';console.log(isFinite(value1)); // trueconsole.log(isFinite(value2)); // falseconsole.log(isFinite(value3)); // false Copy
const value1 = 100;const value2 = Infinity;const value3 = '100';console.log(isFinite(value1)); // trueconsole.log(isFinite(value2)); // falseconsole.log(isFinite(value3)); // false
Alias