Skip to content

Instantly share code, notes, and snippets.

@vg22
Created June 9, 2016 17:04
Show Gist options
  • Save vg22/75bcf60ae282b492096573b03d4b33a0 to your computer and use it in GitHub Desktop.
Save vg22/75bcf60ae282b492096573b03d4b33a0 to your computer and use it in GitHub Desktop.
function mutation(arr) {
var a=arr[0].toLowerCase().split("");
var b=arr[0].toLowerCase().split("");
var i=0;
for (i in b){
if(a.indexOf(b[i])>-1){
return true;
}
}
return false;
}
mutation(["hello", "hey"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment