Last active
December 19, 2015 11:05
-
-
Save zhengjunwei/ffd257b51dcb9f4782a5 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 first = arr[0].toUpperCase(); | |
var second = arr1.toUpperCase(); | |
var flag = 1; | |
for(var i=0;i<second.length;i++){ | |
if(first.indexOf(second[i])==-1){ | |
flag = 0; | |
} | |
} | |
return (flag==1)?true:false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment