`const street = user.address && user.address.street;`
The Optional Chaining ECMAScript proposal offers an elegant solution in the form of a new operator, like so:
`const street = user.address?.street // won't break if address is undefined`
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!