function isNumberStr(str){ var n = Number(str); return !isNaN(n);}
console.log(isNumberStr('37')); //true
console.log(isNumberStr('37.454')); //trueconsole.log(isNumberStr('37.454A')); //falseconsole.log(isNumberStr('0')); //trueconsole.log(isNumberStr('-37.454')); //true