DEV Community

Discussion on: Optional Chaining may be coming to JavaScript

Collapse
 
briansotodo profile image
b

I don't know about the syntax (func?.() and arr?.[0] is kind of weird) but it would be really useful!

Collapse
 
sammyisa profile image
Sammy Israwi

Yeah, you are not alone in that. That syntax of those seems to be the main reason this is still in Stage 1. It's likely that will change before hitting Stage 2!