Making the job of garbage collector easier by replacing the Map with the WeakMap
ECMAScript 6 introduces a lot of cool features that we are now quite familiar with. In this article, we talk about some of the data structures that it implements. To understand more sophisticated ones like the WeakMap, we also go through the regular Map. The above aims to introduce us to some new possibilities and therefore […]