isInteger < Number < JavaScript
The Number isInteger() static method determines whether the passed value is an integer.
console.log(Number.isInteger(123));
// true
console.log(Number.isInteger('123'));
// false
The Number isInteger() static method determines whether the passed value is an integer.
console.log(Number.isInteger(123));
// true
console.log(Number.isInteger('123'));
// false