UNPKG

@technobuddha/library

Version:
15 lines (14 loc) 398 B
"use strict"; 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;