iterable - It represents an array and other iterable object whose elements are in the form of key-value pair.
Points to remember
- A WeakMap object allows the keys of object type only.
- In WeakMap, if there is no reference to a key object, they are targeted to garbage collection.
- In WeakMap, the keys are not enumerable. So, it doesn't provide any method to get the list of keys.
- A WeakMap object iterates its elements in insertion order.
||It deletes the specified element from the WeakMap object.
||It returns the value of specified key.
||It indicates whether the WeakMap object contains the specified value element.
||It adds or updates the key-value pairs to WeakMap object.