Map.prototype.clear

Deletes all key-value pairs from the Map object.

Syntax

clear()