DEV Community

Discussion on: 😲🤯The most outstanding new feature in Javascript you need to know about: Optional Chaining

Collapse
 
tanuj101 profile image
Tanuj Nagpal

No use until it is supported by major browsers

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

Why not just use babel.js?

You as a developer don't even see the difference?

One day you will just remove the babel.js plugin and that's it.

Collapse
 
tanuj101 profile image
Tanuj Nagpal

Oh didn't see the plugin

Thread Thread
 
lampewebdev profile image
Michael "lampe" Lazarski

there is a link in the Start using it today section.

babel-plugin-proposal-optional-cha...

Thread Thread
 
tanuj101 profile image
Tanuj Nagpal

yeah got it thanks!

Thread Thread
 
lampewebdev profile image
Michael "lampe" Lazarski

No problem :)

Thread Thread
 
slashgear_ profile image
Antoine Caron

We should really consider not to use it until it is available in browsers.

The polyfill is really ugly and verbose.

That's why I wrote this article

dev.to/slashgear_/optional-chainin...

Thread Thread
 
lampewebdev profile image
Michael "lampe" Lazarski

I have a confession to make.

I really really dislike lodash and underscore.

If you look at babel code,
in general, it does not look good.

Besides that looking at the lodash code it is not much better ;)

But that's just my opinion, there is no right or wrong here!

Thread Thread
 
mateiadrielrafael profile image
Matei Adriel

Totally agree:)