MCPcopy
hub / github.com/vuejs/composition-api / isRef

Function isRef

src/reactivity/ref.ts:113–115  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

111}
112
113export function isRef<T>(value: any): value is Ref<T> {
114 return value instanceof RefImpl
115}
116
117export function unref<T>(ref: T | Ref<T>): T {
118 return isRef(ref) ? (ref.value as any) : ref

Callers 15

isComputedFunction · 0.90
ref.spec.tsFile · 0.90
reactive.spec.tsFile · 0.90
mergeDataFunction · 0.90
initSetupFunction · 0.90
customReactiveFunction · 0.90
hasReactiveArrayChildFunction · 0.90
setupAccessControlFunction · 0.90
defineAccessControlFunction · 0.90
shallowReadonlyFunction · 0.90
createWatcherFunction · 0.90

Calls

no outgoing calls

Tested by 1

isComputedFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…