Provides utility functions for operating on URLs. Initially this is simply a method to determine the Base URL of a URL, but should probably include other things provided all over the place such as determining whether a URL is relative/absolute, resolving two paths etc.
- Source:
Methods
-
isRelative(url)
-
Determines whether the url is relative.
Parameters:
Name Type Description url
string - Source:
Returns:
- Type
- bool
-
parseBaseUrl()
-
Returns a string that contains the Base URL of a URL, if determinable.
- Source:
Returns:
- Type
- string