orEmpty

inline fun String?.orEmpty(): String(source)

Returns the string if it is not null, or the empty string otherwise.

Since Kotlin

1.1
inline fun String?.orEmpty(): String(source)

Returns the string if it is not null, or the empty string otherwise.

Since Kotlin

1.0