The Number.isInteger() function returns true if the value is an integer.

Click the button to check whether the values are integers.

Note: The Number.isInteger() method is not supported in IE 11 (and earlier versions).