globalsWeakSetprototypeWeakSet.prototype.addVersion: 3.28.0On 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.