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