Function isNumericString

  • Checks if a given string is numeric.

    Parameters

    • string: string

      The string to be checked.

    Returns boolean

    A boolean indicating whether the string is numeric or not.

    Remarks

    This function will return true if the string can be converted to a finite number, false otherwise.

    Example

    isNumericString("123");;
    //=> true
    isNumericString("abc");;
    //=> false

Generated using TypeDoc