isNotNull

fun String?.isNotNull(): Boolean

Checking nullability.

Example:

val text: String? = null
text.isNotNull() // false

val text2 = "null"
text2.isNotNull() // false

val text3 = "hi"
text3.isNotNull() // true

Since

1.1.0

Return

Boolean