@technobuddha/library
Version:
A large library of useful functions
13 lines (11 loc) • 307 B
text/typescript
const re = /^(\p{Lu})+$/u;
/**
* Test a string for all upper case characters
* @param input - string to test
* @returns true, if all characters in the string are upper case
* @group String
* @category Categorization
*/
export function isUpperCase(input: string): boolean {
return re.test(input);
}