InterviewSolution
Saved Bookmarks
| 1. |
What is the use of the Weakmap object in JavaScript? |
|
Answer» The WEAKMAP object is BASICALLY a collection of key or value pairs where the keys are weakly referenced. It provides a way for extending OBJECTS from the outside without meddling into the garbage collection. Here are some use cases of Weakmap objects:
|
|