Created
October 3, 2019 17:15
-
-
Save parzibyte/3cac1149218937739bef3928ebb34395 to your computer and use it in GitHub Desktop.
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
/** | |
* Saber si un carácter es una letra de la A a la Z | |
* con JavaScript | |
* | |
* https://parzibyte.me/blog | |
* | |
*/ | |
const esLetra = (caracter) => { | |
let ascii = caracter.toUpperCase().charCodeAt(0); | |
return ascii > 64 && ascii < 91; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment