Home > utils > TreeData > removeNodeAll
移除符合条件的所有节点。返回被移除的节点组成的数组。
Signature:
removeNodeAll(predicate: (payload: TreeDataTraverseFnPayload<TNode>) => boolean): TNode[];
Parameter | Type | Description |
---|---|---|
predicate | (payload: TreeDataTraverseFnPayload<TNode>) => boolean | 条件 |
Returns:
TNode[]