isURL
function isURL(input): input is `file://${string}` | `https://${string}` | `http://${string}`;Check if the string is an URL
Parameters
Section titled “Parameters”any
input
Returns
Section titled “Returns”input is `file://${string}` | `https://${string}` | `http://${string}`
true when the input is an URL with a supported protocol