Checks if a string contains any whitespace.
The string to check
True if the string contains whitespace.
hasWhitespace("Hello world") // truehasWhitespace("Nowordspace") // false Copy
hasWhitespace("Hello world") // truehasWhitespace("Nowordspace") // false
Checks if a string contains any whitespace.