GitHub 6521★

Check if a string is upper case

JavaScript version

const isUpperCase = (str) => str === str.toUpperCase();

TypeScript version

const isUpperCase = (str: string): boolean => str === str.toUpperCase();
Follow me on and to get more useful contents.