isChildOrSelf
Checks if a path or file is a child or self of another path or file.
Import:
import { isChildOrSelf } from '@mnaoumov/obsidian-lib/vault';Signature:
function isChildOrSelf(params: IsChildOrSelfParams): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
params |
IsChildOrSelfParams | The 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: