Kotlin: IsNotEmpty() is not !IsNullOrEmpty()
One day, I saw this code in a code review. It looks odd as it is a NOT of Empty.
val hasNoString = !someString.isNullOrEmpty()
What comes to my mind is, this is essentially should be just.
val hasNoString = someString.isNotEmpty()
Looks logical right? When a string is not empty, it is definitely not null right?