Use property paths (`a.b.c`) get a nested value from an object.
-
Updated
Aug 7, 2023 - JavaScript
Use property paths (`a.b.c`) get a nested value from an object.
🚚 A really small and type-safe (requires TypeScript >= 4.1.3) function, that gets a nested value from an object using a path string (like "a.b[0].d"). If value is 'undefined' or unreachable returns the placeholder instead.
Get a property from a nested object using a dot path or custom separator
Add a description, image, and links to the get-deep topic page so that developers can more easily learn about it.
To associate your repository with the get-deep topic, visit your repo's landing page and select "manage topics."