Version: v0.7.1 - Beta.  We welcome contributors & feedback.

String.isSpace

isSpace() -> boolean

Description

Return true if the string consists of all whitespace characters or is empty.

'\n  '.isSpace()
//= true

'abc 123'.isSpace()
//= false

See Also