Skip to content

Instantly share code, notes, and snippets.

@tamunoibi
Last active April 16, 2018 11:34
Show Gist options
  • Save tamunoibi/dcc0a42a9bd0eb6584378632bf954b19 to your computer and use it in GitHub Desktop.
Save tamunoibi/dcc0a42a9bd0eb6584378632bf954b19 to your computer and use it in GitHub Desktop.
test if it works
function isIsogram(word) {
if (word == "" || word <= 0) {
return false;
}
word.toLowerCase();
var i, j;
for (i = 0; i < word.length; i += 1) {
for (j = i + 1; j < word.length; j += 1) {
if (word[i] == word[j]) {
return false;
}
}
}
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment