MCPcopy
hub / github.com/vuejs/core / isRef

Function isRef

packages/reactivity/src/ref.ts:48–50  ·  view source on GitHub ↗
(r: any)

Source from the content-addressed store, hash-verified

46export function isRef<T>(r: Ref<T> | unknown): r is Ref<T>
47/*@__NO_SIDE_EFFECTS__*/
48export function isRef(r: any): r is Ref {
49 return r ? r[ReactiveFlags.IS_REF] === true : false
50}
51
52/**
53 * Takes an inner value and returns a reactive and mutable ref object, which

Callers 15

watchFunction · 0.90
traverseFunction · 0.90
getMethod · 0.90
setMethod · 0.90
reactive.spec.tsFile · 0.90
resolveInjectionsFunction · 0.90
formatPropFunction · 0.90
headerFunction · 0.90
setRefFunction · 0.90
exposeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected