Is there a way to show unchanged when the delta is undefined, that is there are no changes? The following produce an empty string when there are no changes
var delta = jsondiffpatch.diff(left, right);
// left is optional, if specified unchanged values will be visible too
document.getElementBy('the-diff').innerHTML =
jsondiffpatch.formatters.html.format(delta, left);
// Also you can dinamically show/hide unchanged values
jsondiffpatch.formatters.html.showUnchanged();
Is there a way to show unchanged when the delta is undefined, that is there are no changes? The following produce an empty string when there are no changes
Basically I need to show the
left
json as it is