Function: getProperty()
getProperty<
T
>(obj
,path
):undefined
|T
Defined in: utils.ts:9
Retrieves a property from an object based on a path.
Type Parameters
T
T
Parameters
obj
any
The object to retrieve the property from.
path
The path to the property (e.g., "key" or ["user", "name"]).
string
[] | keyof T
| "*"
Returns
undefined
| T
The value of the property or undefined
if the path is invalid.