function mutation(arr) { let first = arr[0]; let second = arr[1]; return first.indexOf(second) !== -1; } console.log(mutation(["hello", "hel"]));