Quote:
Originally Posted by SkittlesAreFalling
You can simply:
Code:
var IsNumeric = function(test) {
return (isNaN(parseFloat(test)) == false && isFinite(test) == true);
}
That way you can also test if a string "123" is a number or even a float "69.1994".
|
isFinite is nice, but my function works well with floats too