Page Contents

Home > @loopback/context > getDeepProperty

getDeepProperty() function

Get nested properties of an object by path

Signature:

export declare function getDeepProperty<OUT = BoundValue, IN = BoundValue>(value: IN, path: string): OUT | undefined;

Parameters

Parameter Type Description
value IN Value of the source object
path string Path to the property

Returns:

OUT | undefined