matches

fun <K, V> Map<K, V>.matches(key: K, value: V): Boolean

A function that checks if both key and value exists which is just a shorthand for

map[k] == v