Kotlin HashMap containsKey()
Syntax & Examples


Syntax of HashMap.containsKey()

The syntax of HashMap.containsKey() function is:

fun containsKey(key: K): Boolean

This containsKey() function of HashMap returns true if the map contains the specified key.