Closed
Description
Hi,
This is probably pretty simple, it just doesn't seem to be working as I expect. I have a Node app and am comparing an old record to a new one and calculating a diff. I am then sending that diff to the browser where an old version of the record resides. I am then attempting to apply the diff and having no luck.
So I tried to do it all in the browser and ran the following:
var arr1 = [1,2,3,4];
var arr2 = [1,2,3,4,5,6,7];
var diffs = DeepDiff(arr1, arr2);
DeepDiff(arr1, diffs);
Expecting to output the same as arr2? Instead I get an error.
Any suggestions.
Best regards,
Paul