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): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
file | unknown | The file to check. |
Returns: boolean — A boolean indicating whether the file is an instance of file.