The Wayback Machine - https://web.archive.org/web/20220130164628/https://www.geeksforgeeks.org/javascript-weakmap-complete-reference/
Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

JavaScript WeakMap Complete Reference

  • Difficulty Level : Basic
  • Last Updated : 16 Mar, 2021

WeakMap object in JavaScript is used to store the collection of objects (key-value pairs) in which keys are weakly referenced. The major difference of a WeakSet with the set is that a WeakSet is a collection of objects and not values of some particular type.

The Complete methods of WeakMap are listed below:

Instance Methods

Image

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!