benjamine / jsondiffpatch

Diff & patch JavaScript objects
MIT License
4.86k stars 472 forks source link

html formatter error when diffing with an array with undefined values #367

Open DVLP opened 6 months ago

DVLP commented 6 months ago

The array values are undefined deliberately

html.format is giving this image Diff returned by jsondiffpatchinstance.diff image

It could be because formatValue in HtmlFormatter is expecting JSON.stringify to return a string but for undefined JSON.stringify returns undefined