- Preparing search index...
- The search index is not available
debe-workspace
Class FilterReducer<T, T2>
Constructors
constructor
- new FilterReducer<T, T2>(map, mapField?): FilterReducer<T, T2>
-
Parameters
-
-
Optional mapField: IMapField
Properties
Optional mapField
mapField?: IMapField
Methods
filter
- filter(query, mapField?): ((item) => boolean)
-
Parameters
-
query: [string, ...any[]]
-
Optional mapField: IMapField
Returns ((item) => boolean)
-
- (item): boolean
-
Returns boolean
reduce
- reduce(state, query, mapField?): T
-
Parameters
-
state: T
-
query: [string, ...any[]]
-
Optional mapField: IMapField
Returns T