DEV Community

Discussion on: Optional Chaining Has Arrived!

Collapse
 
niu_tech profile image
niu tech

You can use optional chaining today in every browser:

const thing = ((obj||{}).node||{}).thing

That said, optional chaining is natively supported in Chrome 80+.