globalsWeakSetprototypeWeakSet.prototype.addVersion: 3.27.2On this pageWeakSet.prototype.addThe add() method appends a new object to the end of a WeakSet object.Syntaxadd(value)Parametersvalue: Required. The object to add to the WeakSet collection.Return valueThe WeakSet object.