containsWhitespace
Checks if the given string contains any whitespace characters.
- Use
RegExp.prototype.test()
with an appropriate regular expression to check if the given string contains any whitespace characters.
Checks if the given string contains any whitespace characters.
RegExp.prototype.test()
with an appropriate regular expression to check if the given string contains any whitespace characters.