isValidUrl
sourceisValidUrl(value: any, includeFtp: boolean = false): value is stringsource
Checks if the given value is a valid URL. This function is not intended to be a complete URL validator, but rather a quick check to see if a value is a URL or not. It does not check for valid domain names, but it does check for valid protocols, paths, query parameters, and fragments.