Checks if the provided string is a valid URL.

  • Parameters

    • url: string

      The string to validate as a URL.

    Returns boolean

    true if the string is a valid URL, otherwise false.