Retrieves a value from a nested object or array using a dot-separated path string.
Supports array indexing and concatenated keys for complex structures.
Type Parameters
T = unknown
The expected return type.
Parameters
content: unknown
The object or array to traverse.
path: string
Dot-separated string representing the path to the desired value.
Retrieves a value from a nested object or array using a dot-separated path string. Supports array indexing and concatenated keys for complex structures.