Appearance
Home > @liquidrazor/list-display > applyPatches
applyPatches() function
Applies a list of patches in order.
Signature:
typescript
applyPatches: <TRow = any, TRowId extends RowId = RowId>(rows: TRow[], patches: Array<DataPatch<TRow, TRowId>>, idKey: keyof TRow & string) => TRow[]Parameters
Parameter | Type | Description |
|---|---|---|
rows | TRow[] | |
patches | Array<DataPatch<TRow, TRowId>> | |
idKey | keyof TRow & string |
Returns:
TRow[]