JavaScript WeakSet
JavaScript WeakSet object is used to store only the weakly held objects. Syntax: new WeakSet ([iterable]) Where: iterable is the object whose elements will be added to a new WeakSet. Note: WeakSet object can not contains the primitive type elements. It can contain only object-type elements. JavaScript WeakSet Methods: add() Use: To add a new … Read more