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 Binding key

Returns:

boolean