Skip to main content

Function: getObjectProperty

getObjectProperty(value, property): Record<string, unknown> | undefined

Narrow an object property without trusting a cast at a network boundary.

Parameters​

ParameterType
valueunknown
propertystring

Returns​

Record<string, unknown> | undefined