Join Slack
Powered by
Is there a slightly more elegant way to do this: `...
# announcements
f
fitzoh
09/14/2017, 5:02 PM
Is there a slightly more elegant way to do this:
fun blankToNull(str: String?) = if (str.isNullOrBlank()) null else str
?
2
Views
Open in Slack
Previous
Next