Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 301 Bytes

index.md

File metadata and controls

20 lines (14 loc) · 301 Bytes
category related
Utilities
resolveUnref

resolveUnref

Get the value of value/ref/getter.

Usage

import { resolveUnref } from '@vueuse/core'

const foo = ref('hi')

const a = resolveUnref(0) // 0
const b = resolveUnref(foo) // 'hi'
const c = resolveUnref(() => 'hi') // 'hi'