Function: isDescendant()
isDescendant<
TRow>(nodeId,potentialDescendantId,state):boolean
Defined in: src/tree-editor/validators.ts:7
Returns true when potentialAncestorId is nodeId itself or one of its
descendants. Walks the subtree rooted at nodeId iteratively.
Type Parameters
TRow
TRow
Parameters
nodeId
string
potentialDescendantId
string
state
TreeState<TRow>
Returns
boolean