Created
June 9, 2016 17:04
-
-
Save vg22/75bcf60ae282b492096573b03d4b33a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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