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

String.hasSpace

hasSpace() -> boolean

Description

Return true if the string has at least one whitespace character.

'Abc 123'.hasSpace()
//= true

'xyz789'.hasSpace()
//= false

See Also