Determine if input is a string that URL.canParse() accepts as a valid URL.
input
URL.canParse()
isUrlString('https://example.com'); // trueisUrlString('not a url'); // false Copy
isUrlString('https://example.com'); // trueisUrlString('not a url'); // false
Determine if
inputis a string thatURL.canParse()accepts as a valid URL.