MCPcopy Create free account
hub / github.com/JacksonTian/fks / arrayDifference

Function arrayDifference

fks_chart/bower_components/angular/angular.js:18578–18590  ·  view source on GitHub ↗
(tokens1, tokens2)

Source from the content-addressed store, hash-verified

18576 };
18577
18578 function arrayDifference(tokens1, tokens2) {
18579 var values = [];
18580
18581 outer:
18582 for(var i = 0; i < tokens1.length; i++) {
18583 var token = tokens1[i];
18584 for(var j = 0; j < tokens2.length; j++) {
18585 if(token == tokens2[j]) continue outer;
18586 }
18587 values.push(token);
18588 }
18589 return values;
18590 }
18591
18592 function arrayClasses (classVal) {
18593 if (isArray(classVal)) {

Callers 1

updateClassesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected