Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function quickEqual(queryA, queryB){
var dataA = queryA.data,
dataB = queryB.data;
if(dataA && dataB) {
if(!deepMatches(dataA, dataB)) {
return false;
}
}
var q1 = new QueryLogic.KeysAnd(removeFixtureAndXHR(queryA)),
q2 = new QueryLogic.KeysAnd(removeFixtureAndXHR(queryB));
return set.isEqual( q1, q2 );
}
function quickEqual(queryA, queryB){
var dataA = queryA.data,
dataB = queryB.data;
if(dataA && dataB) {
if(!deepMatches(dataA, dataB)) {
return false;
}
}
var q1 = new QueryLogic.KeysAnd(removeFixtureAndXHR(queryA)),
q2 = new QueryLogic.KeysAnd(removeFixtureAndXHR(queryB));
return set.isEqual( q1, q2 );
}