JavaScript - это число целого числа
Number.isInteger(value)
//returns a Boolean
Mushy Mockingbird
Number.isInteger(value)
//returns a Boolean
// The === operator is used for checking
// the value and the type of a variable
var data = 1;
if (data === parseInt(data, 10))
alert("data is integer")
else
alert("data is not an integer")