deep-object-diff
deep-object-diff copied to clipboard
JSON.stringify will omit deleted keys in the result because they are set to undefined
When you JSON.stringify an object, it omit keys that has undefined value.
That means for the result coming back from deletedDiff needs a replacer for JSON.stringify to keep the key.
It's a small thing, but if you were not aware of it, like I did, you get tripped by it.
Sounds like #10 with a solution: https://github.com/mattphillips/deep-object-diff/issues/10#issuecomment-308224665
As referenced from https://github.com/mattphillips/deep-object-diff/issues/76#issuecomment-1048090047
Can this be closed now?