[Edit]
+
0
-
0
js check if character is letter
1 2 3 4 5const isLetter = (character) => { // it will work only for: most Latin, Greek, Armenian and Cyrillic scripts. // it will not work for: Chinese, Japanese, Arabic, Hebrew and most other scripts. return character && character.length === 1 && character.toLowerCase() !== character.toUpperCase(); };