javascript
Optional chaining allows us to access deeply nested properties values , without having to check whether the intermediate property exists or not. In Javascript Optional Chaining is represented by `?.` and this feature was introduced in ES2020
Let's understand this in detail. For an example consider response object

Lets try accessing response.customer.address.street
Comments
Post a Comment