Checks if the given string is a valid port number.

  • Parameters

    • value: string

      The string to validate.

    Returns boolean

    True if the string is a valid port number, false otherwise.