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

Function hasOwnProperty

packages/reactivity/src/baseHandlers.ts:41–47  ·  view source on GitHub ↗
(this: object, key: unknown)

Source from the content-addressed store, hash-verified

39)
40
41function hasOwnProperty(this: object, key: unknown) {
42 // #10455 hasOwnProperty may be called with non-string values
43 if (!isSymbol(key)) key = String(key)
44 const obj = toRaw(this)
45 track(obj, TrackOpTypes.HAS, key)
46 return obj.hasOwnProperty(key as string)
47}
48
49class BaseReactiveHandler implements ProxyHandler<Target> {
50 constructor(

Callers

nothing calls this directly

Calls 4

isSymbolFunction · 0.90
toRawFunction · 0.90
trackFunction · 0.90
StringInterface · 0.85

Tested by

no test coverage detected