filterBy

Filters the provided data tree according to the specified FilterDescriptor[].

Parameters

data any[]

The data that will be filtered.

descriptors FilterDescriptor[]

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.

 /