diff
diff<
T
>(a
,b
):KeyValue
[]
Defined in: packages/store-kit/src/objects/state.ts:85
Compares two objects and returns an array of key-value pairs that represent the differences between the two objects.
Type Parameters
• T
Parameters
a
T
The first object to compare.
b
T
The second object to compare.
Returns
KeyValue
[]
An array of key-value pairs where the key is the modified path (prefixed), and the value is the value from the second object at that path.