You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to only list structural differences, so I'm not interested in the text content. Is there a more efficient way of filtering them out than the following? (I know forEach isn't the most efficient)
var data1= require("./data1.json);
var data2= require("./data2.json");
var diff = require("deep-diff").diff;
var differences = diff(data1, data2);
differences.forEach(function(thisDiff){
if(thisDiff.kind !== "E")
console.log(thisDiff);
});
The text was updated successfully, but these errors were encountered:
I'm trying to only list structural differences, so I'm not interested in the text content. Is there a more efficient way of filtering them out than the following? (I know forEach isn't the most efficient)
The text was updated successfully, but these errors were encountered: