globalsSet()prototypeSet.prototype.clear()Version: 3.32.1On this pageSet.prototype.clear()The clear() method removes all elements from a Set object.Syntaxclear()Return valueundefined.