method URL.canParsecanParse(url: string | URL, base?: string | URL): booleanParametersurl: string | URLoptionalbase: string | URLReturnsboolean