Skip to content
masterclass Buddy

Vue.js · Function

unref

unref() returns a ref's inner value. If the input is not a ref, it returns the input unchanged.

Last updated

Syntax

function unref<T>(ref: T | Ref<T>): T

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • isRef()
  • toValue()
  • Ref

Source: Reactivity API: Utilities | Vue.js. Checked 2026-11-03.