nonEmpty
Checks whether the given string, list or map is non empty. A String is non empty if it contains any non-whitespace character. A list or map is non empty if their length > 0.
nonEmpty(targetString | targetList | targetMap)Parameters#
targetString:stringto check for non emptinesstargetList:listto check for non emptinesstargetMap:mapto check for non emptiness
Returns#
- Modified
list
Example#
assertFalse(nonEmpty(' '))