Determines whether the provided value is a finite integer number.
The value to validate.
true if the value is a finite integer.
true
This function returns true only for finite numeric values that have no fractional component.
This excludes:
NaN
Infinity
-Infinity
isInteger(42); // trueisInteger(-10); // trueisInteger(3.14); // falseisInteger(NaN); // falseisInteger('42'); // false Copy
isInteger(42); // trueisInteger(-10); // trueisInteger(3.14); // falseisInteger(NaN); // falseisInteger('42'); // false
1.1
Determines whether the provided value is a finite integer number.