UNPKG

@technobuddha/library

Version:
12 lines (10 loc) 275 B
/** * Test a string for all white space characters * * @param input string to test * @return true, if all characters in the string are white space */ export function isWhitespace(input: string): boolean { return /^\s+$/u.test(input); } export default isWhitespace;