Skip to content

Instantly share code, notes, and snippets.

@AlvisonHunterArnuero
Last active April 12, 2024 23:27
Show Gist options
  • Save AlvisonHunterArnuero/04c6ce7799ada3a91e276a37a3bc68b6 to your computer and use it in GitHub Desktop.
Save AlvisonHunterArnuero/04c6ce7799ada3a91e276a37a3bc68b6 to your computer and use it in GitHub Desktop.
// // 12 - Is it a letter? | https://www.codewars.com/kata/57a06b07cf1fa58b2b000252
const isItLetter = (c) => /[a-zA-Z]/.test(c);
console.log(isItLetter("a")); // true, `'a' is a letter`
console.log(isItLetter("1")); // false, `'1' is not a letter`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment