Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getScopesetDiff = (scopesA, scopesB) => {
const scopesUnion = scopeUnion(scopesA, scopesB);
const scopesetDiff = [];
scopesUnion.forEach(scope => {
const s1 = scopeIntersection([scope], scopesA);
const s2 = scopeIntersection([scope], scopesB);
scopesetDiff.push([s1, s2]);
});
return scopesetDiff;
};
getScopesetDiff = (scopesA, scopesB) => {
const scopesUnion = scopeUnion(scopesA, scopesB);
const scopesetDiff = [];
scopesUnion.forEach(scope => {
const s1 = scopeIntersection([scope], scopesA);
const s2 = scopeIntersection([scope], scopesB);
scopesetDiff.push([s1, s2]);
});
return scopesetDiff;
};