is there a better way to do something like: if(isB...
# announcements
b
is there a better way to do something like: if(isBlankOrNull(string))
d
string.isNullOrBlank()
b
thank you!
I suppose creating methods on nullable types requires you to use extension functions right?
d
Yes
b
Yes, it does.
fun String?.isNullOrBlank() = ...