Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created January 8, 2020 07:33
Show Gist options
  • Save ABooooo/aaa74c9e0e2f8e4d26d9a7d44e5b6133 to your computer and use it in GitHub Desktop.
Save ABooooo/aaa74c9e0e2f8e4d26d9a7d44e5b6133 to your computer and use it in GitHub Desktop.
outerloop:
for (i = 0; i < a.length; i++) {
for (j = 0; j < b.length; j++) {
console.log(a[i] + ' compare with ' + b[j]);
if (a[i] === b[j]) {
continue outerloop;
}
}
console.log('ERROR no match');
break outerloop;
}
// switch a and b to compare values in correct order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment