Skip to content

isPathOrFile

Checks if the given value is a path or a file.

Import:

import { isPathOrFile } from '@mnaoumov/obsidian-lib/file-system';

Signature:

function isPathOrFile(value: unknown): boolean

Parameters:

Parameter Type Description
value unknown The value to check.

Returns: boolean — A boolean indicating whether the value is a string or an instance of file.