DEV Community 👩‍💻👨‍💻

Discussion on: Optional Chaining JavaScript / TypeScript

Collapse
 
pichardoj profile image
J. Pichardo • Edited on

Yeah, that's why I ended using proxies and functions, in order to do something like

optional(obj, obj => obj["H.Angel"].name.location, "Default");