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

if lhs and rhs are both null, it detectes an edit, but it shouldn't #83

Closed bitliner closed 7 years ago

bitliner commented 7 years ago

I compare 2 objects, like these

// obj1
{
  date: null
}

// obj2
{
  date: null
}

and diff detects an edit. I don't expect that as the right behavior.

flitbit commented 7 years ago

Added test illustrating this is not an issue.