Get object value by nested keys.
When the path is a string literal ('a.b.c') or a tuple of literals
(['a', 'b'] as const), the return type is inferred from T by walking
the path. For dynamic paths (variable strings or non-tuple arrays) the
return type is unknown; pass T explicitly via the first generic if
you know what to expect.
Get object value by nested keys.
When the path is a string literal (
'a.b.c') or a tuple of literals (['a', 'b'] as const), the return type is inferred fromTby walking the path. For dynamic paths (variable strings or non-tuple arrays) the return type isunknown; passTexplicitly via the first generic if you know what to expect.