Skip to main content
Version: 3.45.0

Map.prototype.clear()

The clear() method removes all elements from a Map object.

Syntax​

clear()

Return value​

undefined.