Page Contents
Home > @loopback/context > Context > contains
Context.contains() method
Check if a binding exists with the given key in the local context without delegating to the parent context
Signature:
contains(key: BindingAddress): boolean;
Parameters
| Parameter | Type | Description |
|---|---|---|
| key | [BindingAddress](/doc/en/lb4/apidocs.context.bindingaddress.html) | Binding key |
Returns:
boolean