C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
JavaScript WeakMap ObjectThe JavaScript WeakMap object is a type of collection which is almost similar to Map. It stores each element as a key-value pair where keys are weakly referenced. Here, the keys are objects and the values are arbitrary values. Syntaxnew WeakMap([iterable]) Parameteriterable - It represents an array and other iterable object whose elements are in the form of key-value pair. Points to remember
JavaScript WeakMap Methods
Next TopicJavaScript callback
|