Skip to content

isFileUrl

Determines whether a given string is a file:// URL.

Import:

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

Signature:

function isFileUrl($string: string): boolean

Parameters:

ParameterTypeDescription
$stringstring

Returns: booleantrue if the string uses the file: scheme, otherwise false.