.clear()

Term side of the Card
Topic: Map
Unit title: .clear()
Categories: Method
Explanation side of the Card

Explanation: The method that removes all key-value pairs from a `Map` object. After calling this method, the map is empty and its size is 0.

Browser compatibility:
  • The chrome browser supports this feature starting from version 38
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 19
  • The safari browser supports this feature starting from version 8
Availability: