Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
Because non-registered symbols are also garbage collectable, they can also be used as the target of a WeakRef object. However, the use case of this is limited.
The constructor function that created the instance object. For WeakRef instances, the initial value is the WeakRef constructor.
The initial value of the [Symbol.toStringTag] property is the string "WeakRef". This property is used in Object.prototype.toString().
The initial value of the [Symbol.toStringTag] property is the string "WeakRef". This property is used in Object.prototype.toString().
Returns the WeakRef object's target object, or undefined if the target object has been reclaimed.
This page was last modified on Jul 10, 2025 by MDN contributors.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.