I am searching the ultimate best way to check if a var
is a Number
function isInt(n){
return !isNaN(parseInt(n * 1));
}
alert(isInt(""));//true
This website lied to me http://www.inventpartners.com/content/javascript_is_int
and the second comment of a guy of the anser https://stackoverflow.com/a/3886106/908879 scared me enough to don't use his answer
please help me to find the correct one plxplx