Here you can find the source of isInteger()
String.prototype.isInteger = function() { return (/^[-\+]?\d+$/.test(this.Trim())); }
String.prototype.isInt = function() { if (this == "NaN") return false; return this == parseInt(this).toString();
String.prototype.isInteger = function() { return (/\d/g).test(this);
Number.isInteger = function isInteger(value, isString) { if (typeof value === "string" && isString) { if (value.match(/^[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?$/)) { return Number.isInteger(parseFloat(value, 10)); return typeof value === "number" && isFinite(value) && Math.floor(value) === value; };