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

Function hasOwn

packages/shared/src/general.ts:34–37  ·  view source on GitHub ↗
(
  val: object,
  key: string | symbol,
)

Source from the content-addressed store, hash-verified

32
33const hasOwnProperty = Object.prototype.hasOwnProperty
34export const hasOwn = (
35 val: object,
36 key: string | symbol,
37): key is keyof typeof val => hasOwnProperty.call(val, key)
38
39export const isArray: typeof Array.isArray = Array.isArray
40export const isMap = (val: unknown): val is Map<any, any> =>

Callers 15

markRawFunction · 0.90
setMethod · 0.90
deletePropertyMethod · 0.90
appendScopeIdFunction · 0.90
mergeElementsFunction · 0.90
resolveInterfaceMembersFunction · 0.90
rewriteIdentifierFunction · 0.90
_mountMethod · 0.90
provideFunction · 0.90
isEmitListenerFunction · 0.90
hasSetupBindingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected