Skip to content

Home > @liquidrazor/list-display > applyFilters

applyFilters() function

Applies filters to a list of rows and returns the filtered array.

Signature:

typescript
applyFilters: <TRow = AnyRow>(rows: TRow[], ctx: FilterContext<TRow>) => TRow[]

Parameters

Parameter

Type

Description

rows

TRow[]

ctx

FilterContext<TRow>

Returns:

TRow[]