SplitScript reference / String / isBlank
String.isBlank
Method
String.isBlank() -> bool
Reports whether this string is empty or contains only Unicode whitespace.
Whitespace follows the Unicode White_Space property. This includes ordinary ASCII spacing and line breaks as well as characters such as non-breaking space. String itself is never absent; use match on T? when None should also satisfy the condition.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Ignore a blank checkpoint label
let padding = String.concat(["\t", '\u{00a0}' as String, "\n"])
let missingLabel = padding.isBlank()