forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix comparison for arrays (elastic#208171)
The comparison helper is not considering arrays - this means when comparing two objects with arrays, it will always find a diff because to the `!==` operator, the arrays are not the same: ```ts calculateObjectDiff( { alpha: [1, 2, 3], beta: [4, 5, 6] }, { alpha: [1, 2, 3], beta: [4, 5, 6] }) ``` This PR fixes this by recursing into each element of the array.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters