How do you pick the right AI tools? | Join us to find out

Tag: weakmap

ES2015 (ES6) added several new data structures. While Map and Set are more straightforward, ES2015 also added “weak collections” like WeakMap and WeakSet. In this post we’ll go over why maps were added, what’s “weak” about a WeakMap and when one might want to use it. What we did before maps JavaScript has had object…