mattphillips / deep-object-diff

Deep diffs two objects, including nested structures of arrays and objects, and returns the difference. ❄️
https://www.npmjs.com/package/deep-object-diff
MIT License
1.05k stars 89 forks source link

Feature Request: Add `equals` method #93

Open vikingair opened 1 year ago

vikingair commented 1 year ago

Could you also export a function called equals like so?

const equals = (a, b) => Object.keys(diff(a, b)).length === 0;

This would make it more obvious that additional packages like https://www.npmjs.com/package/fast-deep-equal, don't have to be installed alongside this package?