Join Slack
Powered by
is there any way to check maps has all values null...
# getting-started
r
Rohit Lagu
10/19/2022, 8:18 PM
is there any way to check maps has all values null? val m = mapOf(“s” to null, “a” to null) Not working >> println(m.values.isNullOrEmpty()) working >> println(m.values.all{it == null}) better way >>?
c
Chris Lee
10/19/2022, 8:35 PM
A few options documented
here
.
👍 1
Open in Slack
Previous
Next