Namespace
The input string to check.
True if the string contains whitespace, false otherwise.
const inputString1 = "Hello, world!"; // No whitespace
const inputString2 = "Hello, world! "; // Contains whitespace
console.log(containsWhitespace(inputString1)); // Output: false
console.log(containsWhitespace(inputString2)); // Output: true
Generated using TypeDoc
StringUtils
Check if a string contains whitespace.