> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/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

### ancestor

`Path`

### descendant

`Path`

## Returns

`boolean`