title: how to loop through a nested array, and preserve the array structure
body: <p>I currently have an array of arrays thats look like this:</p>
  
  <pre><code>[Array(8), Array(5), Array(7), Array(13), Array(9), Array(5), Array(4), Array(10)]
  </code></pre>
  
  <p>each array has objects in them, and each object has a various values.</p>
  
  <p>what i'm looking to do is loop through the whole array, and then in each array, I want to grab a value from each object in the array. I havent had a problem doing that, but the problem I have come across was preserving the original structure.</p>
  
  <p>I essentially want to keep all the arrays how they are, but instead of showing the entire object, I want to just show the one value that I need from the object.  </p>
  
  <pre><code>for (let i = 0, len = item.length; i &lt; len; i++) {
          temp = item[i];
          for (let i = 0, len = temp.length; i &lt; len; i++) {
               array.push(temp[i].item);
           }
       }
  </code></pre>
  
  <p>this is my code, problem is, I get a list of all the items in one single array instead of in the their original format. </p>