MCPcopy Index your code
hub / github.com/angular-ui/ui-router / arrayDifference

Function arrayDifference

test/angular/1.2/angular.js:18621–18633  ·  view source on GitHub ↗
(tokens1, tokens2)

Source from the content-addressed store, hash-verified

18619 };
18620
18621 function arrayDifference(tokens1, tokens2) {
18622 var values = [];
18623
18624 outer:
18625 for(var i = 0; i < tokens1.length; i++) {
18626 var token = tokens1[i];
18627 for(var j = 0; j < tokens2.length; j++) {
18628 if(token == tokens2[j]) continue outer;
18629 }
18630 values.push(token);
18631 }
18632 return values;
18633 }
18634
18635 function arrayClasses (classVal) {
18636 if (isArray(classVal)) {

Callers 1

updateClassesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected