Function: diff()
ts
function diff(prev, next): Patch | null | undefined;Defined in: patch.ts:33
The patch that turns prev into next. Returns undefined when they are equal, and null when they cannot be patched because one of them is not a plain object: send next whole in that case.
next is read as JSON would write it: keys holding undefined count as absent.
Parameters
| Parameter | Type |
|---|---|
prev | unknown |
next | unknown |
Returns
Patch | null | undefined