filterBy

Filters the provided data tree according to the specified Arra<FilterDescriptor|CompositeFilterDescriptor>.

Parameters

data any[]

The data that will be filtered.

descriptors FilterDescriptor[] | CompositeFilterDescriptor[]

The filter criteria that will be applied.

subItemsField string

The field which points to the subitems collection of each data item.

Returns

any[] - The filtered data.