---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# WeakRef.prototype.deref()

The `deref` method returns the `WeakRef` instance's target
object, or `undefined` if the target object has been garbage-collected.

## Syntax

```js
deref()
```

### Return value

The target object of the WeakRef, or `undefined` if the object has been
garbage-collected.

## Description

See the [Notes on WeakRefs](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/WeakRef#notes_on_weakrefs) section of the `WeakRef` page for some important notes.
