Determines if the given text contains any non-whitespace characters.
This is null | undefined safe. If you pass null | undefined then this will return false.
null | undefined
false
isNotWhitespace(null); // falseisNotWhitespace(" "); // falseisNotWhitespace("Hello"); // true Copy
isNotWhitespace(null); // falseisNotWhitespace(" "); // falseisNotWhitespace("Hello"); // true
Determines if the given text contains any non-whitespace characters.