title: How can I get array of objects instead of array of array
body: <p>Ok I think this is so simple but I cant get the preferred result so far, so I have an array of objects in my Db like below:</p>
  <pre><code>&quot;meetingPlans&quot;: [
          {
            &quot;date&quot;: &quot;2020-11-30&quot;,
            &quot;times&quot;: [
              {
                &quot;section&quot;: &quot;morning&quot;,
                &quot;slots&quot;: 4,
                &quot;time&quot;: &quot;9:00-10:00&quot;
              },
              {
                &quot;section&quot;: &quot;morning&quot;,
                &quot;slots&quot;: 3,
                &quot;time&quot;: &quot;10:00-10:15&quot;
              },
              {
                &quot;section&quot;: &quot;morning&quot;,
                &quot;slots&quot;: 2,
                &quot;time&quot;: &quot;10:15-10:30&quot;
              },
              {
                &quot;section&quot;: &quot;morning&quot;,
                &quot;slots&quot;: 0,
                &quot;time&quot;: &quot;10:30-11:00&quot;
              }
            ]
          }
        ]
  </code></pre>
  <p>and I need to get the times array separately in one array, I did it in following way but the result is an array of array which isn't satisfying I need a single array:</p>
  <pre><code>const therapists = useSelector(state =&gt; state.therapists.listOfTherapists); // this is the whole object
    let therapistDates = [];
    let therapistTimes = []; 
  
    const plansArray = therapists.meetingPlans; 
    plansArr.forEach((el) =&gt; therapistTimes.push(el.times)); 
    console.log(therapistTimes) //this returns an array of array. but I need a single array
  
  </code></pre>
  <p>how can I get my array?</p>