String.isEmpty
isEmpty() -> boolean
Description
Return true if the string has no visible characters.
It is considered empty if it consists of only whitespace characters like space, newline, tab, unicode non-breaking space, etc.
''.isEmpty() //= true ' '.isEmpty() //= true ' \n'.isEmpty() //= true 'x y z'.isEmpty() //= false