Map

reject/2

reject(map, fun)

Returns map excluding the pairs from map for which fun returns a falsy value.

fun receives the key and value of each of the elements in the map as a key-value pair.