Skip to content

Instantly share code, notes, and snippets.

@zhengjunwei
Last active December 19, 2015 11:05
Show Gist options
  • Save zhengjunwei/ffd257b51dcb9f4782a5 to your computer and use it in GitHub Desktop.
Save zhengjunwei/ffd257b51dcb9f4782a5 to your computer and use it in GitHub Desktop.
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