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