Validates if a given string is a valid URL.

  • Parameters

    • url: string

      The URL string to validate.

    Returns boolean

    True if the URL is valid, false otherwise.