method str.isBlank
True when the text is empty or only white space.
Example:
fn main() io {
print("{" ".isBlank()} {" a ".isBlank()}")
}Output
true false
pub(api) fn isBlank() -> boolSince. 1.0.0-beta
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:730