Skip to content

getByPath

Since v3.3.0

Read a nested value from row by pre-parsed path segments. Returns undefined on any nullish/non-object hop. Prototype-pollution safe.

function getByPath(row: unknown, path: readonly string[]): unknown
NameTypeDescription
rowunknown
pathreadonly string[]