MCPcopy Create free account
hub / github.com/bclinkinbeard/angular / arrayDifference

Function arrayDifference

test/fixtures/foo.js:18426–18438  ·  view source on GitHub ↗
(tokens1, tokens2)

Source from the content-addressed store, hash-verified

18424 };
18425
18426 function arrayDifference(tokens1, tokens2) {
18427 var values = [];
18428
18429 outer:
18430 for(var i = 0; i < tokens1.length; i++) {
18431 var token = tokens1[i];
18432 for(var j = 0; j < tokens2.length; j++) {
18433 if(token == tokens2[j]) continue outer;
18434 }
18435 values.push(token);
18436 }
18437 return values;
18438 }
18439
18440 function arrayClasses (classVal) {
18441 if (isArray(classVal)) {

Callers 1

updateClassesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected