wei
06/14/2018, 10:30 PMa
and b
. I want to check if they are both null
or empty
or if not, then if they are equal, i.e., if a = "" || a?.isEmpty()
and b = null || b.isEmpty()
or a == b
then I want to return true.
Simply doing a == b
won’t work for a = ""
and b = null
case.
What’s the cleanest way to express this?