Checks if a string is numeric, that is, whether or not it can be converted to a numeric value.
isNumeric( x )
x | The string to check |
---|
True if the string is numeric, false otherwise.
isNumeric("abc") // Returns false. isNumeric("12m1") // Returns false. isNumeric("45") // Returns true. isNumeric("1.2") // Returns true.