MCPcopy Create free account
hub / github.com/angular-ui/ui-router / arrayDifference

Function arrayDifference

test/angular/1.5/angular.js:25710–25722  ·  view source on GitHub ↗
(tokens1, tokens2)

Source from the content-addressed store, hash-verified

25708 };
25709
25710 function arrayDifference(tokens1, tokens2) {
25711 var values = [];
25712
25713 outer:
25714 for (var i = 0; i < tokens1.length; i++) {
25715 var token = tokens1[i];
25716 for (var j = 0; j < tokens2.length; j++) {
25717 if (token === tokens2[j]) continue outer;
25718 }
25719 values.push(token);
25720 }
25721 return values;
25722 }
25723
25724 function arrayClasses(classVal) {
25725 var classes = [];

Callers 1

updateClassesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected