MCPcopy
hub / github.com/loopbackio/loopback-next / hasOwnMetadata

Method hasOwnMetadata

packages/metadata/src/reflect.ts:85–95  ·  view source on GitHub ↗
(
    metadataKey: string,
    target: Object,
    propertyKey?: string,
  )

Source from the content-addressed store, hash-verified

83 }
84
85 hasOwnMetadata(
86 metadataKey: string,
87 target: Object,
88 propertyKey?: string,
89 ): boolean {
90 metadataKey = this.getMetadataKey(metadataKey);
91 if (propertyKey) {
92 return Reflect.hasOwnMetadata(metadataKey, target, propertyKey);
93 }
94 return Reflect.hasOwnMetadata(metadataKey, target);
95 }
96
97 deleteMetadata(
98 metadataKey: string,

Callers 1

runTestsFunction · 0.80

Calls 1

getMetadataKeyMethod · 0.95

Tested by 1

runTestsFunction · 0.64