Last active
May 22, 2018 09:41
-
-
Save AdrianSkar/6d807c8c1d1d4a8726de0fffc516dacb to your computer and use it in GitHub Desktop.
[JS] fCC exercise: https://codepen.io/adrianskar/pen/ELdaKp
This file contains hidden or 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
// 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