mapWithoutKeyCanDestroy

Create a new map like this map, but without the key/value pair having the specified key. If the key was not present, then answer the original map. The original map can be modified in place (and then returned) if canDestroy is true and the map is mutable.

Return

The new map not having the specified key.

Parameters

keyObject

The key to remove.

canDestroy

Whether a mutable map can be modified in place.