• Checks if the URL string specifies the protocol and port.

    Parameters

    • urlString: string

      The URL string to test.

    • url: URL

      The parsed URL object.

    Returns boolean

    True if the the URL string includes the protocol and port.