benjamine / jsondiffpatch

Diff & patch JavaScript objects
MIT License
4.77k stars 464 forks source link

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

Open DVLP opened 4 months ago

DVLP commented 4 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