flitbit / diff

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

fix: issue #98 #99

Closed sberan closed 7 years ago

sberan commented 7 years ago

Thanks for pointing in the direction of the bug @flitbit! I think I have a fix here 🍰

I modified the code to inspect the stack to discover when a property is defined. Also fixes an issue where a populated but undefined value on the rhs would not be detected when the lhs property is not populated.

sberan commented 7 years ago

@flitbit any chance you can take a look at this? This issue caused a bug in our application.

sberan commented 7 years ago

Thanks @flitbit 💯