Skip to content

isChildOrSelf

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

Import:

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

Signature:

function isChildOrSelf(params: IsChildOrSelfParams): boolean

Parameters:

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

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


Links to this page: