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.
Parameters
Section titled “Parameters”ancestor
Section titled “ancestor”Path
descendant
Section titled “descendant”Path
Returns
Section titled “Returns”boolean