Tell us what’s happening:
My code meets all conditions except the first one, until, when I remove the spread operator (…), then the first condition is met, but all the rest is false again.
Your code so far
function mutation(arr) {
return arr[0].split('').includes(...arr[1].toLowerCase().split(''));
}
mutation(["hello", "hey"]);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-algorithm-scripting/mutations