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

Method has

packages/reactivity/src/baseHandlers.ts:207–213  ·  view source on GitHub ↗
(target: Record<string | symbol, unknown>, key: string | symbol)

Source from the content-addressed store, hash-verified

205 }
206
207 has(target: Record<string | symbol, unknown>, key: string | symbol): boolean {
208 const result = Reflect.has(target, key)
209 if (!isSymbol(key) || !builtInSymbols.has(key)) {
210 track(target, TrackOpTypes.HAS, key)
211 }
212 return result
213 }
214
215 ownKeys(target: Record<string | symbol, unknown>): (string | symbol)[] {
216 track(

Callers 15

processDeclarationFunction · 0.80
renderChunkFunction · 0.80
resumeMethod · 0.80
hasFunction · 0.80
getMethod · 0.80
triggerFunction · 0.80
reactive.spec.tsFile · 0.80
readonly.spec.tsFile · 0.80
WeakSet.spec.tsFile · 0.80
Map.spec.tsFile · 0.80
Set.spec.tsFile · 0.80

Calls 2

isSymbolFunction · 0.90
trackFunction · 0.90

Tested by 1

resetHeadFunction · 0.64