containsKey
Returns true if the map contains the specified key.
inline fun <K> Map<out K, *>.containsKey(key: K): Boolean(source)
val map = mapOf("a" to 1, "b" to 2)
println(map.containsKey("a")) // true
println(map.containsKey("c")) // false
Returns true if the map contains the specified key.
inline fun <K> Map<out K, *>.containsKey(key: K): Boolean(source)
val map = mapOf("a" to 1, "b" to 2)
println(map.containsKey("a")) // true
println(map.containsKey("c")) // false