Function isNumericString

Checks if a string is a numeric string. By default, it allows only integers. Floats and exponents can be enabled with options. Optionally allow NaN and Infinity.