![Check if the given string contains any whitespace characters](https://javascriptsource.com/wp-content/uploads/2022/01/Check-if-the-given-string-contains-any-whitespace-characters-702x526.jpg)
Use RegExp.prototype.test()
with an appropriate regular expression to check if the given string contains any whitespace characters.
const containsWhitespace = str => /\s/.test(str);
// EXAMPLE
containsWhitespace('lorem'); // false
containsWhitespace('lorem ipsum'); // true