isUrl
Determines whether a given string is a valid URL
Import:
import { isUrl } from 'obsidian-dev-utils/url';Signature:
function isUrl(str: string): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
str | string | The string to validate as a URL. |
Returns: boolean — true if the string is a valid URL, otherwise false.