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

Allow some degree of configuration #96

Open FZ-Iskandar opened 1 year ago

FZ-Iskandar commented 1 year ago

It would be great if you could give a third parameter to the methods with a few configuration options, like for example:

Just some ideas of configurations that could be set

ioev commented 1 year ago

I ran into a case recently where I was diffing some objects that contained arrays, and I didn't care about the ordering of the arrays. Being able to specify this as a config option would be nice (currently defaults to returning a diff entry.)