Skip to content

isFile

Checks if the given file is an instance of file.

Import:

import { isFile } from 'obsidian-dev-utils/obsidian/file-system';

Signature:

function isFile(file: unknown): boolean

Parameters:

ParameterTypeDescription
fileunknownThe file to check.

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