Home > utils > TreeData > findNodePath
查找符合条件的第一个节点的路径。
Signature:
findNodePath(predicate: (payload: TreeDataTraverseFnPayload<TNode>) => boolean): TNode[] | undefined;
Parameter | Type | Description |
---|---|---|
predicate | (payload: TreeDataTraverseFnPayload<TNode>) => boolean | 条件 |
Returns:
TNode[] | undefined