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[]
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt