Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 3, 2019 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/3cac1149218937739bef3928ebb34395 to your computer and use it in GitHub Desktop.
Save parzibyte/3cac1149218937739bef3928ebb34395 to your computer and use it in GitHub Desktop.
/**
* 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