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