Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mutation(arr) {
- var a = arr[0].toLowerCase();
- var b = arr[1].toLowerCase();
- for (i=0; i<b.length; i++){
- if (a.indexOf(b[i]) < 0){
- return false;
- }
- }
- return true;
- }
- mutation(["hello", "Hello"]);
Add Comment
Please, Sign In to add comment