squashRecordDiffs
See source codeSquash a collection of diffs into a single diff.
function squashRecordDiffs<T extends UnknownRecord>(
diffs: RecordsDiff<T>[],
options?: {
mutateFirstDiff?: boolean
}
): RecordsDiff<T>
Parameters
Name | Description |
---|---|
|
An array of diffs to squash. |
|
An optional object with a |
Returns
RecordsDiff<T>
A single diff that represents the squashed diffs.
Prev
reverseRecordsDiffNext
useSync