Constructors
constructor
- new URL(url, base?): URL
Parameters
- url: string | URL
Optional
base: string | URL
Returns URL
Properties
Readonly
origin
origin: string
Methods
toJSON
- toJSON(): string
Returns string
toString
- toString(): string
Returns string
MDN Reference