OxL Reference

method str.isBlank

True when the text is empty or only white space.

Example:

oxl✓ checked in CI
fn main() io {
  print("{"  ".isBlank()} {" a ".isBlank()}")
}
Output
true false
pub(api) fn isBlank() -> bool

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:730

See also