nullifyIfPresent

fun <K, V> MutableMap<K, V?>.nullifyIfPresent(key: K)

Nullifies the value of key on a MutableMap with the value having a nullable type V if key is present.