This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am alaa-khattab on github. | |
* I am alaakhattab (https://keybase.io/alaakhattab) on keybase. | |
* I have a public key ASCWOLdFX56VTGUi7mjRf5WPhc0CYlVX3LcuZQayKK1kawo | |
To claim this, I am signing this object: |
This file contains 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
const firstNonRepeatingLetter = (input)=>{ | |
var inputChar = input.split(''); | |
var result = "" | |
for(x = 0 ; x < inputChar.length ; x++){ | |
var newChar = input.toLowerCase().split('') | |
newChar.splice(x,1) | |
if(!newChar.includes(inputChar[x].toLowerCase())){ | |
result = inputChar[x]; | |
break; | |
} |