How WeakSet actually works
Introduction
The key to understanding WeakMap is understanding how JavaScript's memory management works.
Let's build this up:
// Regular objects in memory
let obj = { data: "important" };
// obj has a reference, so it stays in memory
obj = null;
// ...
tigerabrodi.blog3 min read