WeakRef.prototype.deref()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
deref()
は WeakRef
インスタンスのメソッドで、この WeakRef
のターゲット値、またはその値が既にガベージコレクションされている場合は undefined
を返します。
構文
js
deref()
引数
なし。
返値
この WeakRef の参照先となるターゲット値で、オブジェクトまたは未登録のシンボルのどちらかです。その値が既にガベージコレクションされている場合は undefined
です。
解説
重要な注意事項については WeakRef
ページの WeakRef の注意事項の節を参照してください。
例
deref() の使用
仕様書
Specification |
---|
ECMAScript® 2025 Language Specification # sec-weak-ref.prototype.deref |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
deref |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.