flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.
MIT License
3k stars 214 forks source link

Add boolean diff mode that aborts as soon as a difference is found #118

Open nhooey opened 7 years ago

nhooey commented 7 years ago

Sometimes you just want to know if two things differ deeply, but aren't interested in the details. A diff mode that returns a boolean and aborts early would perform much better than the default implementation.

sebn commented 6 years ago

Woudn't lodash's _.isEqual (or something equivalent) do the trick, since we can install it on its own and it doesn't have any dependency? So it doesn't really have to be part of deep-diff... or did I miss anything?