Page Contents

Home > @loopback/context > Context > isBound

Context.isBound() method

Check if a key is bound in the context or its ancestors

Signature:

isBound(key: BindingAddress): boolean;

Parameters

Parameter Type Description
key [BindingAddress](/doc/en/lb4/apidocs.context.bindingaddress.html) Binding key

Returns:

boolean