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)
#
ParameterstargetString
:string
to check for non emptinesstargetList
:list
to check for non emptinesstargetMap
:map
to check for non emptiness
#
Returns- Modified
list
#
ExampleassertFalse(nonEmpty(' '))