title: ES6 destructuring get nested object property
body: <p>I have below object in an array.
  When iterating I need to access a specific property in the loop. I am able to fetch basic properties but unable to get nested property value.</p>
  
  <pre><code>let data = [{
    id:"0",
    value:{
      empId:"123",
      emp_type:"perm",
      schedule:{
        abcSchedule:{cron_str: "0 13 * * 0,3,4,5,6"}
      }
    }
  }];
  
  
  var newMap = data.map(({ idx: i, value: { empId, emp_type, /*cron_str ? how to get  */  } }) =&gt; console.log(emp_type));
  </code></pre>
  
  <p>How could I get the cron_str when in map with the help of destructuring. If no values is provided then it should have default value.</p>