Map.remove

Stay organized with collections Save and categorize content based on your preferences.

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.