HasWhitespace Function
The HasWhitespace function returns true if a given string starts with, ends with, or contains duplicate whitespace.
Syntax
HasWhitespace(value)
The HasWhitespace function returns true if a given string starts with, ends with, or contains duplicate whitespace.
Arguments
value
String - The string to check.
Remarks
- The following characters are considered whitespace: space, tab, carriage return, line feed, page break.
Example:
HasWhitespace(" test value"); // returns true
Example:
HasWhitespace("test value"); // returns true
Example:
HasWhitespace("test value"); // returns false