Check if a string is upper case
JavaScript
const isUpperCase = (str) => str === str.toUpperCase()TypeScript
const isUpperCase = (str: string): boolean => str === str.toUpperCase()const isUpperCase = (str) => str === str.toUpperCase()const isUpperCase = (str: string): boolean => str === str.toUpperCase()