vtils

Home > utils > TreeData > filter

TreeData.filter() method

筛选符合条件的节点。

Signature:

filter(predicate: (payload: TreeDataTraverseFnPayload<TNode>) => boolean): this;

Parameters

Parameter Type Description
predicate (payload: TreeDataTraverseFnPayload<TNode>) => boolean 条件

Returns:

this