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

Method contains

packages/context/src/context.ts:461–464  ·  view source on GitHub ↗

* Check if a binding exists with the given key in the local context without * delegating to the parent context * @param key - Binding key

(key: BindingAddress)

Source from the content-addressed store, hash-verified

459 * @param key - Binding key
460 */
461 contains(key: BindingAddress): boolean {
462 key = BindingKey.validate(key);
463 return this.registry.has(key);
464 }
465
466 /**
467 * Check if a key is bound in the context or its ancestors

Calls 1

validateMethod · 0.80

Tested by

no test coverage detected