This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.
Smartphone icons created by Freepik - Flaticon
The isSafeInteger() method returns true if the argument is a safe integer.
Otherwise it returns false.
document.getElementById("demo").innerHTML = Number.isSafeInteger(10) + "<br>" + Number.isSafeInteger(12345678901234567890);