Why is it that my code doesn’t work?
function mutation(arr) {
const snoop = w =>
w
.join('')
.toLowerCase()
.split('')
.sort('')
.join('');
let first = arr.slice(0, 1);
const base = snoop(first);
let second = arr.slice(1, 2);
const finder = snoop(second);
return base === finder;
}