Home Reference Source

Function

Static Public Summary
public

combineURLs(baseURL: string, relativeURL: string): string

Creates a new URL by combining the specified URLs

public

Determines whether the specified URL is absolute

Static Public

public combineURLs(baseURL: string, relativeURL: string): string source

Creates a new URL by combining the specified URLs

Params:

NameTypeAttributeDescription
baseURL string

The base URL

relativeURL string

The relative URL

Return:

string

The combined URL

public isAbsoluteURL(url: string): boolean source

Determines whether the specified URL is absolute

Params:

NameTypeAttributeDescription
url string

The URL to test

Return:

boolean

True if the specified URL is absolute, otherwise false