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