Created
March 15, 2018 21:39
-
-
Save Xaz16/c3412209352e60d0b8d9a919f3d35b13 to your computer and use it in GitHub Desktop.
An isogram is a word that has no repeating letters, consecutive or non-consecutive.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isIsogram(str){ | |
return !/(\w).*\1/i.test(str) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment