JavaScript WeakRef
WeakRef and FinalizationRegistry. This category documents 6 JavaScript weakref entries, and each page gives you the full syntax, the parameter list, the return value, a runnable example, time complexity, the TypeScript signature, and the mistakes developers most often make with that API. The entries are: WeakRef(), WeakRef.prototype.deref(), WeakSet.prototype.has(), WeakSet.prototype.delete(), WeakMap.prototype.has(), WeakMap.prototype.delete(). For a structured walkthrough of the whole topic, read the WeakMap & WeakSet guide. Not sure which method you need? WeakRef() and WeakRef.prototype.deref() are the most commonly used starting points in this category. You can also search across every category from the search page or browse the complete A–Z index.