Function parseNumericValue

Parse a string into a numeric value.

  • Parameters

    • string: string

      The string to parse.

    Returns string | number

    The parsed numeric value, or the original string if it cannot be parsed.