SPOILER ALERT
Solution of the challenge below
I solved the challenge with this code.
function mutation(arr) {
return arr[1].toLowerCase().split('').every(elem => arr[0].toLowerCase().includes(elem))
}
I’ve seen few solutions wich uses indexOf() method. (Freecodecamp hint also mentioned it). I want to know if the above code will work good aswell.
I tried to solve with RegExp first but could not do it, It is possible?