I have installed the npm install big-integer https://www.npmjs.org/package/big-integer to test if the number is in the specified range with this code:
isBigInt: function () {
var val = $(this).valueOf
var valor = bigInt(val);
var minimo = bigInt("-9223372036854775808");
var maximo = bigInt("9223372036854775807");
if (bigInt(val).greaterOrEquals(minimo) && bigInt(val).lesserOrEquals(maximo))
return true;
else
return false;
}
,
($input.hasClass("bigint") && !$input.isBigInt())
but when I compile the code appears the following message:
"JavaScript runtime error: Invalid integer: NaN"