isAncestor()
isAncestor(
maybeAncestor
,path
):boolean
Determines if the first path is an ancestor of the second path. The first path must be shorter and exactly match the second path up through the length of the first path.
Parameters
Parameter | Type |
---|---|
maybeAncestor | Path |
path | Path |
Returns
boolean
Defined in
packages/react-querybuilder/src/utils/pathUtils.ts:41
caution
API documentation is generated from the latest commit on the main
branch. It may be somewhat inconsistent with official releases of React Query Builder.