Function filterTreeArray3
- filterTreeArray3<T>(treeDataArr, filterFn, childrenFieldName?): T[]
Parameters
- treeDataArr: readonly T[]
- filterFn: ((node: T) => boolean)
- (node): boolean
Returns boolean
- childrenFieldName: keyof T = 'children'
Returns T[]
返回一个新的,被过滤后的树形结构数组
过滤树形数据数组中的节点