Kotlin HashMap isNotEmpty()
Syntax & Examples


Syntax of HashMap.isNotEmpty()

The syntax of HashMap.isNotEmpty() extension function is:

fun <K, V> Map<out K, V>.isNotEmpty(): Boolean

This isNotEmpty() extension function of HashMap returns true if this map is not empty.