Appearance
Home > @liquidrazor/list-display > applyPatch
applyPatch() function
Applies a single data patch to the current list of rows.
Signature:
typescript
applyPatch: <TRow = any, TRowId extends RowId = RowId>(rows: TRow[], patch: DataPatch<TRow, TRowId>, idKey: keyof TRow & string) => TRow[]Parameters
Parameter | Type | Description |
|---|---|---|
rows | TRow[] | |
patch | DataPatch<TRow, TRowId> | |
idKey | keyof TRow & string |
Returns:
TRow[]