title: Check nested JSON in Javascript/Typescript to see if Data is null before operation
body: <p>Is there an easier way in Typescript/Javascript to check if nested JSON object is null, and then set a value? Right now, we have to peruse through 4 data layers to check if they are null, and then we can conduct operation to set value. Curious if there is any easier syntax?</p>
  
  <pre><code>if (this.addressEntryConfig
      &amp;&amp; this.addressEntryConfig.addressModel
      &amp;&amp; this.addressEntryConfig.addressModel.partyMailingAddress 
      &amp;&amp; this.addressEntryConfig.addressModel.partyMailingAddress.address) {
  
      this.addressMailingInputData = this.addressEntryConfig.addressModel.partyMailingAddress.address;
  }
  </code></pre>
  
  <p>Resource:  <a href="https://stackoverflow.com/questions/2631001/test-for-existence-of-nested-javascript-object-key/2631198#2631198">Test for existence of nested JavaScript object key</a></p>