You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that there is a problem with comparing arrays.
The problem only occurs:
when we add a new element to the beginning of the array
and when we are showing unchanged values
Example
var left = {"ids": [1, 2, 3]}; var right = {"ids": [4, 1, 2, 3]}; var delta = jsondiffpatch.diff(left, right); Results
In this case only the replacement of the first element will be detected, and what I need is completely added new element without replacing first one.
Can you please check if this is a bug or this should work like this.
Thanks
The text was updated successfully, but these errors were encountered:
I noticed that there is a problem with comparing arrays.
The problem only occurs:
when we add a new element to the beginning of the array
and when we are showing unchanged values
Example
var left = {"ids": [1, 2, 3]};
var right = {"ids": [4, 1, 2, 3]};
var delta = jsondiffpatch.diff(left, right);
Results
In this case only the replacement of the first element will be detected, and what I need is completely added new element without replacing first one.
Can you please check if this is a bug or this should work like this.
Thanks
The text was updated successfully, but these errors were encountered: