MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / arrayDifference

Function arrayDifference

code/songhop/www/lib/angular/angular.js:22096–22108  ·  view source on GitHub ↗
(tokens1, tokens2)

Source from the content-addressed store, hash-verified

22094 };
22095
22096 function arrayDifference(tokens1, tokens2) {
22097 var values = [];
22098
22099 outer:
22100 for (var i = 0; i < tokens1.length; i++) {
22101 var token = tokens1[i];
22102 for (var j = 0; j < tokens2.length; j++) {
22103 if (token == tokens2[j]) continue outer;
22104 }
22105 values.push(token);
22106 }
22107 return values;
22108 }
22109
22110 function arrayClasses(classVal) {
22111 if (isArray(classVal)) {

Callers 1

updateClassesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected