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);
});
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)