Determines whether a given string is a valid URL
Import:
import { isUrl } from '@mnaoumov/typescript-lib/url';
Signature:
function isUrl($string: string): boolean
Parameters:
| Parameter |
Type |
Description |
$string |
string |
|
Returns: boolean — true if the string is a valid URL, otherwise false.