I'm stuck on this CodeWars problem where I check to see if a letter is repeated within a word and I'm having a problem checking for equality. The letters appear to be all strictly not equal as the loop iterates.
function isIsogram(str){
var split = str.toLowerCase().split('');
var result = true;
for (var i = 0; i < str.length; i++){
for (var j = i+1; j < str.length; j++){
if (split[i] !== split[i][j]) {
console.log(split[i]+ " -> "+ split[j] );
}
else {
console.log("They are equal");
}
}
}
}
isIsogram( "abca" )