tryParseURL(value
: string
): URL
| null
Tries parse a string to a URL object
Parameters
Parameter | Type | Description |
---|
value | string | The possible URL to parse |
Returns
URL
| null
an URL object if it was a valid URL or null
if it was not.
Defined in
tryParseURL.ts:6