Created
March 24, 2023 16:15
-
-
Save UmairJibran/4abed3782c3717b9639d3f70f2c5220f to your computer and use it in GitHub Desktop.
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){ | |
| 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