McanParse
Bun

method

URL.canParse

static canParse(
url: string | URL,
base?: string | URL
): boolean;

Referenced types

class URL

The URL interface represents an object providing static methods used for creating object URLs.

MDN Reference