method
URL.canParse
Referenced types
class URL
The URL interface represents an object providing static methods used for creating object URLs.
The
toString()method on theURLobject returns the serialized URL. The value returned is equivalent to that of href and toJSON.