Skip to content

Instantly share code, notes, and snippets.

@UmairJibran
Created March 24, 2023 16:15
Show Gist options
  • Select an option

  • Save UmairJibran/4abed3782c3717b9639d3f70f2c5220f to your computer and use it in GitHub Desktop.

Select an option

Save UmairJibran/4abed3782c3717b9639d3f70f2c5220f to your computer and use it in GitHub Desktop.
function isIsogram(str){
const usedChars = []
for(let i = 0; i < str.length; i+=1) {
if(!usedChars.includes(str[i].toLowerCase())){
usedChars.push(str[i].toLowerCase())
}
}
return usedChars.length === str.length
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment