A Map is an unordered list of key-value pairs in which the key and value can be of any type, such as string, boolean, or number. Every key in a Weak Map can only be an object or a function. It was formerly used to save weak object references. Iterable maps exist. WeakMaps can't be iterated.
WeakMap is a Map-like collection that only accepts objects as keys and eliminates them along with their associated value once they are no longer accessible through other means. WeakSet is a Set-like collection that only stores objects and destroys them after they are no longer available through other means.
Even if the values refer to the keys, WeakMap allows data to be associated with objects in a way that does not prevent the key objects from being collected.
Superb and amazing 😍🤩 enjoyable experience.
This is by far the most comprehensive tutorial I ever come across. I was really excited to discover this amazing tutorial, but unfortunately couldn't continue due to keypad noise which I'm allergic to
VAISHNAVI RAJESH CHALKE
it helps me to clear my basic conceptual knowledge
Thank you! I enjoyed the course; I learned so much.
Share a personalized message with your friends.