Skip to content

Instantly share code, notes, and snippets.

@ghorvat
Created July 17, 2015 08:30
Show Gist options
  • Save ghorvat/907fd747505aa133295d to your computer and use it in GitHub Desktop.
Save ghorvat/907fd747505aa133295d to your computer and use it in GitHub Desktop.
function Check(A) {
var myarr = innerHtmlARR;
var i, j;
var totalmatches = 0;
for (i = 0; i < myarr.length; i++) {
console.log(myarr[i]);
for (j = 0; j < A.length; ++j) {
if (myarr[i] == A[j]) {
totalmatches++;
}
}
}
if (totalmatches > 0) {
return true;
} else {
return false;
}
}
alert(Check(itemsArr));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment