DEV Community

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

 
lampewebdev profile image
Michael "lampe" Lazarski

What if the API is not in your hand and you have no control over it?

I don't see it being overused in ruby or c# or any other language. Why should this happen in JS?

Thread Thread
 
sudojoe profile image
Joseph Locke • Edited

Assuming that objects returned from third-parties conform to a specific structure (and therefore, not 'verifying' their structure and the presence/lack-thereof of expected properties) is most-likely a security blunder.

Thread Thread
 
lampewebdev profile image
Michael "lampe" Lazarski

Sorry, I don't fully understand what you mean.