🤔 Subverting Control with Weak References
Node supports WeakMap and WeakRef for working with weak references and James is a big fan of the extra abstractions they unlock. A weak reference differs from a normal reference in that it doesn’t prevent a referenced object from being garbage collected – this might sound like it has limited value, but is quite useful in certain scenarios.
James Long
Post #2099
6.04K

- ❤ 7
- 👍 4
- 🔥 1