MCPcopy
hub / github.com/orestbida/cookieconsent / arrayDiff

Function arrayDiff

src/utils/general.js:571–578  ·  view source on GitHub ↗
(arr1, arr2)

Source from the content-addressed store, hash-verified

569 * @param {any[]} arr2
570 */
571export const arrayDiff = (arr1, arr2) => {
572 const a = arr1 || [];
573 const b = arr2 || [];
574
575 return a
576 .filter(x => !elContains(b, x))
577 .concat(b.filter(x => !elContains(a, x)));
578};
579
580/**
581 * Calculate "accept type"

Callers 3

saveCookiePreferencesFunction · 0.90
general.test.jsFile · 0.90
retrieveRejectedServicesFunction · 0.85

Calls 1

elContainsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…