Kotlin HashMap isEmpty()
Syntax & Examples


Syntax of HashMap.isEmpty()

The syntax of HashMap.isEmpty() function is:

fun isEmpty(): Boolean

This isEmpty() function of HashMap returns true if the map is empty (contains no elements), false otherwise.