Skip to content

isChild

Checks if a path or file is a child of another path or file.

Import:

import { isChild } from 'obsidian-dev-utils/obsidian/vault';

Signature:

function isChild(params: IsChildParams): boolean

Parameters:

ParameterTypeDescription
paramsIsChildParamsThe parameters for checking whether the child path or file is a child of the parent path or file.

Returns: boolean — A boolean indicating whether the child path or file is a child of the parent path or file.


Links to this page: