DEV Community

Discussion on: 😰 Optional chaining trap !

Collapse
 
wrldwzrd89 profile image
Eric Ahnell

My opinion is along the lines of the general consensus: Optional chaining sure is compact... but VERY ugly if a polyfill is needed, along with an implicit acceptance of the risk of NULL / undefined data, which I am personally opposed to. As syntactic sugar goes, it makes things easier - but the ugliness of polyfills for JS gives me pause on adopting it now.