mattphillips / deep-object-diff

Deep diffs two objects, including nested structures of arrays and objects, and returns the difference. ❄️

Home Page:https://www.npmjs.com/package/deep-object-diff

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deletedDiff returns undefined values that are not JSON valid

boshka opened this issue · comments

Could there be an option that would result in deletedDiff returning other values, such as null instead of undefined?

Hey @boshka this sounds similar to this issue #10 what you can do is supply a replacer function to JSON.stringify to convert the undefined values to null or anything you like. There is an example of this in action in #10

Let me know if that solves your problem

Hi Matt,
sorry, haven't noticed that solution. Thank you, that works!