deepDiffArray()function

deepDiffArray(left: ImmutableArray, right: R): R | typeof SAME
ParamType
leftImmutableArray
The old array. required
rightR
The new/target array. required
Return
R | typeof SAME
The right array if it is different to left, or the exact SAME constant otherwise.
- If the two values are deeply equal the SAME constant is returned.

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]