@technobuddha/library
Version:
A large library of useful functions
15 lines (14 loc) • 398 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isWhitespace = void 0;
/**
* Test a string for all white space characters
*
* @param input string to test
* @return true, if all characters in the string are white space
*/
function isWhitespace(input) {
return /^\s+$/u.test(input);
}
exports.isWhitespace = isWhitespace;
exports.default = isWhitespace;