@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function isNumericString

    • Returns true if the string represents a valid number.

      Parameters

      • value: string

        The string to check.

      Returns boolean

      isNumericString("42")    // => true
      isNumericString("3.14") // => true
      isNumericString("abc") // => false
      isNumericString("") // => false