Open
Description
basically, each diff type can have an additional flag, areSame
, which is set true if the objects are the same.
This functionality can be achieved with this:
const result = detailedDiff(oldItem, newItem);
const areSame = Object.values(result).reduce((acc, cur) => {
return acc && Object.values(cur).length === 0
}, true);
Metadata
Metadata
Assignees
Labels
No labels