Skip to content

isUrl

Determines whether a given string is a valid URL

Import:

import { isUrl } from 'obsidian-dev-utils/url';

Signature:

function isUrl($string: string): boolean

Parameters:

ParameterTypeDescription
$stringstring

Returns: booleantrue if the string is a valid URL, otherwise false.