Map.remove

Removes the given item from the map, if it exists.

Returns the removed item or null if it hadn't been added to the map.

UsageReturns
Map.remove(item)Object
ArgumentTypeDetails
itemObjectThe item to remove.