Function: getObjectProperty
getObjectProperty(value, property): Record<string, unknown> | undefined
Narrow an object property without trusting a cast at a network boundary.
Parameters
| Parameter | Type |
|---|
value | unknown |
property | string |
Returns
Record<string, unknown> | undefined