Skip to content

isFile

Checks if the given file is an instance of file.

Import:

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

Signature:

function isFile(file: unknown): boolean

Parameters:

Parameter Type Description
file unknown The file to check.

Returns: boolean — A boolean indicating whether the file is an instance of file.


Links to this page: