Skip to content
This page is available as Markdown at /api/traversal/functions/pathcontains.md. For the full documentation index, see /llms.txt, or the complete corpus at /llms-full.txt.

pathContains

pathContains(ancestor, descendant): boolean

Defined in: path-contains.ts:10

Returns true if ancestor is equal to descendant, or if descendant lives anywhere inside ancestor’s subtree.

Path

Path

boolean