deepDiffArray()function
deepDiffArray(left: ImmutableArray, right: R): R | typeof SAME
| Param | Type | |
|---|---|---|
left | ImmutableArray | The old array. required |
right | R | The new/target array. required |
Diff two arrays to produce the transformation needed to transform left into right
DH: Currently arrays don't diff at an item level, they return the entire new array if not deeply equal.
Examples
deepDiffArray([1, 2], [1, 2]) // SAME
deepDiffArray([1, 2], [1, 3]) // [1, 3]