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