I need to check if a word is Isogram, the meaning of Isogram, is that a word has no repeating letters.
I need to implement a function that determines whether a string that contains only letters is an isogram. Assume the empty string is an isogram. Ignore letter case.
Here is a test case
isIsogram( "Dermatoglyphics" ) == true
isIsogram( "aba" ) == false
isIsogram( "moOse" ) == false // -- ignore letter case
I am thinking on do this with a Regex.
function isIsogram(str){
//...
}
can you help?