Learn JavaScript
Map
32.7
Lesson

map.clear()

The map.clear() method removes all the elements from the Map.