ng-diff-match-patch
ng-diff-match-patch copied to clipboard
Compare 2 objects
Is there a way to compare two objects instead of a string. Here is my from and to object:
from = {
testString: "testing",
filter: {
fromDate: "2019-09-22T17:23:00.325Z",
toDate: "2019-10-22T17:23:00.325Z",
testId: "5678"
},
size: ""
};
to = {
testString: "modifiedTest",
filter: {
fromDate: "2019-09-22T17:23:00.325Z",
toDate: "2019-10-22T17:23:00.325Z",
testId: "58"
},
size: ""
};