Skip to content

Instantly share code, notes, and snippets.

@apeque
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save apeque/dc485b84f20295146f63 to your computer and use it in GitHub Desktop.

Select an option

Save apeque/dc485b84f20295146f63 to your computer and use it in GitHub Desktop.
Intersect
/*
Given two arrays, return an array of items that intersect
without using indexOf().
*/
function compare(a,b){
}
compare([1,3,4,5,8], [2,4,5,7]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment