if not using lodash or underscore i was using && syntax to get nested object.  optional chaining operator (?.)  is the saviour with elegant syntax. Its in stage 3 and soon will be supported by all browser as per mozilla docs


According to Mozilla web Docs:

The optional chaining operator permits reading the value of a property located deep within a chain of connected objects without having to expressly validate that each reference in the chain is valid.