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

Function arrayDifference

test/angular/1.3/angular.js:20896–20908  ·  view source on GitHub ↗
(tokens1, tokens2)

Source from the content-addressed store, hash-verified

20894 };
20895
20896 function arrayDifference(tokens1, tokens2) {
20897 var values = [];
20898
20899 outer:
20900 for (var i = 0; i < tokens1.length; i++) {
20901 var token = tokens1[i];
20902 for (var j = 0; j < tokens2.length; j++) {
20903 if (token == tokens2[j]) continue outer;
20904 }
20905 values.push(token);
20906 }
20907 return values;
20908 }
20909
20910 function arrayClasses(classVal) {
20911 if (isArray(classVal)) {

Callers 1

updateClassesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected