Hold object references without preventing garbage collection šŸ—‘ļø

`WeakRef` lets you reference an object while allowing it to be GC’d if nothing else holds a strong reference. Use for caches, and pair with FinalizationRegistry.

Learn more šŸ‘‡
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakRef