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

Function isReactive

packages/reactivity/src/reactive.ts:327–332  ·  packages/reactivity/src/reactive.ts::isReactive
(value: unknown)

Source from the content-addressed store, hash-verified

325 */
326/*@__NO_SIDE_EFFECTS__*/
327export function isReactive(value: unknown): boolean {
328 if (isReadonly(value)) {
329 return isReactive((value as Target)[ReactiveFlags.RAW])
330 }
331 return !!(value && (value as Target)[ReactiveFlags.IS_REACTIVE])
332}
333
334/**
335 * Checks whether the passed value is a readonly object. The properties of a

Callers 15

proxyRefsFunction · 0.90
watchFunction · 0.90
toWrappedFunction · 0.90
maxByFunction · 0.90
reactive.spec.tsFile · 0.90
readonly.spec.tsFile · 0.90
WeakSet.spec.tsFile · 0.90
Map.spec.tsFile · 0.90
Set.spec.tsFile · 0.90

Calls 1

isReadonlyFunction · 0.85

Tested by 1

maxByFunction · 0.72