Is Integer
The Number.isInteger() Method
The Number.isInteger() method returns true if the argument is an integer.
Example
Number.isInteger(10); // returns true
Number.isInteger(10.5); // returns false
The Number.isInteger() method returns true if the argument is an integer.
Number.isInteger(10); // returns true
Number.isInteger(10.5); // returns false