Skip to content

isFileUrl

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

Import:

import { isFileUrl } from '@mnaoumov/typescript-lib/url';

Signature:

function isFileUrl($string: string): boolean

Parameters:

Parameter Type Description
$string string

Returns: boolean — true if the string uses the file: scheme, otherwise false.