MCPcopy Index your code
hub / github.com/binux/qiandao / arrayDifference

Function arrayDifference

web/static/components/angularjs/angular.js:18368–18380  ·  view source on GitHub ↗
(tokens1, tokens2)

Source from the content-addressed store, hash-verified

18366 };
18367
18368 function arrayDifference(tokens1, tokens2) {
18369 var values = [];
18370
18371 outer:
18372 for(var i = 0; i < tokens1.length; i++) {
18373 var token = tokens1[i];
18374 for(var j = 0; j < tokens2.length; j++) {
18375 if(token == tokens2[j]) continue outer;
18376 }
18377 values.push(token);
18378 }
18379 return values;
18380 }
18381
18382 function arrayClasses (classVal) {
18383 if (isArray(classVal)) {

Callers 1

updateClassesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected