Skip to content

Instantly share code, notes, and snippets.

@Xaz16
Created March 15, 2018 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xaz16/c3412209352e60d0b8d9a919f3d35b13 to your computer and use it in GitHub Desktop.
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.
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