Set nested properties on an object using dot-notation.
-
Updated
Feb 8, 2023 - JavaScript
Set nested properties on an object using dot-notation.
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.
Add a description, image, and links to the deep-property topic page so that developers can more easily learn about it.
To associate your repository with the deep-property topic, visit your repo's landing page and select "manage topics."