check if letter in middle of string is uppercase javascript code example
Example 1: check if letter is uppercase javascript
const isUpperCase = (string) => /^[A-Z]*$/.test(string)
Example 2: check if letter is uppercase javascript
isUpperCase('A') // true
isUpperCase('a') // false