nullIfBlank

fun String.nullIfBlank(): String?

Returns null if this String isBlank or the String itself

See also

Sources

Link copied to clipboard