method URL.canParse URL.canParse(url: string | URL,base?: string | URL,): boolean Parameters url: string | URL optional base: string | URL Return Type boolean