4 ms·
I can't answer your questions with certainty, but for those who can, could ES6 WeakMap address these two things?
by ms7 10y ago
I can't answer your questions with certainty, but for those who can, could ES6 WeakMap address these two things?
- bgran 10y agoWeakMap just allows you to tell the GC "don't hold on to this memory just because I'm using it as a key in this Map" -- it doesn't let you tell the GC what to actually do with the memory.