globalsSet()prototypeSet.prototype.clear()Version: 3.45.0On this pageSet.prototype.clear() The clear() method removes all elements from a Set object. Syntax clear() Return value undefined.