Skip to content

Instantly share code, notes, and snippets.

@AdrianSkar
Last active May 22, 2018 09:41
Show Gist options
  • Save AdrianSkar/6d807c8c1d1d4a8726de0fffc516dacb to your computer and use it in GitHub Desktop.
Save AdrianSkar/6d807c8c1d1d4a8726de0fffc516dacb to your computer and use it in GitHub Desktop.
// Mutations
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"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment