MCPcopy Create free account
hub / github.com/aosabook/500lines / arrayDifference

Function arrayDifference

spreadsheet/code/lib/angular.js:21713–21725  ·  view source on GitHub ↗
(tokens1, tokens2)

Source from the content-addressed store, hash-verified

21711 };
21712
21713 function arrayDifference(tokens1, tokens2) {
21714 var values = [];
21715
21716 outer:
21717 for(var i = 0; i < tokens1.length; i++) {
21718 var token = tokens1[i];
21719 for(var j = 0; j < tokens2.length; j++) {
21720 if(token == tokens2[j]) continue outer;
21721 }
21722 values.push(token);
21723 }
21724 return values;
21725 }
21726
21727 function arrayClasses (classVal) {
21728 if (isArray(classVal)) {

Callers 1

updateClassesFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected