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

Method isBound

packages/context/src/context.ts:470–476  ·  view source on GitHub ↗

* Check if a key is bound in the context or its ancestors * @param key - Binding key

(key: BindingAddress)

Source from the content-addressed store, hash-verified

468 * @param key - Binding key
469 */
470 isBound(key: BindingAddress): boolean {
471 if (this.contains(key)) return true;
472 if (this._parent) {
473 return this._parent.isBound(key);
474 }
475 return false;
476 }
477
478 /**
479 * Get the owning context for a binding or its key

Calls 1

containsMethod · 0.95

Tested by

no test coverage detected