loading...

Optional Chaining

twitter logo github logo ・1 min read

TypeError: Cannot read property '' of undefined has bugged every javascript developer enough. While expecting response from APIs, we need to add a number of && to make sure our code don’t break. This maybe not a problem while dealing with 2 level nested object, but while dealing with large data objects this can be nightmare. The game has been changed with Optional Chaining proposal Stage-4.

Read more at https://itsopensource.com/optional-chaining

twitter logo DISCUSS
Classic DEV Post from Jun 24 '19

How do you handle unproductive days at work?

help to boost productivity and motivation

Trishul profile image
Trishul is a frontend developer, loves to talk about modern Javascript, promotes PWAs (#teamWeb) and is expert in developing browser extensions.

New to dev.to?

Browse Top JavaScript Posts