Skip to main content
Version: 3.14.1

Set.prototype.clear()

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

Syntax

clear()

Return value

undefined.