title: How to get name of the array inside of array?
body: <p>I am trying to access name of the array inside of other array in the loop but i am failing. I am able to access name of that array if it's not inside another array by fx. Object.keys({thisObject})[0] but when it's inside of another array it does not work.</p>
  
  <p>I have already tried for each loops, for loops. Nesting initialized arrays in the new array:</p>
  
  <pre><code>var arr1 = [1,2,3]
  var arr2 = [4,5,6]
  var arr3 = new Array(arr1,arr2)
  </code></pre>
  
  <p>Still, in the loop i cannot get the name of the arr1 and arr2. I have possibility to access their values but not the names..</p>
  
  <pre><code>var cars = new Array("Porshe","Mercedes");
  var bikes = new Array("Yamaha","Mitsubishi");
  
  var vehicles = new Array(cars, bikes);
  
  
  for (var key in vehicles) {
      var value = vehicles[key];// This is retruning whole array, not the name
      console.log(Object.keys({vehicles[key]})[0]) // That does not work
      vehicles[key].forEach(car =&gt; {
          console.log(car)
  
      });
  }
  
  
  //or
  
  for (let i=0;i&lt;vehicles.length;i++){
      console.log(vehicles[i]); //This is also returning whole array - same method.
      for(let j = 0; j&lt; vehicles[i].car.length;j++){
               console.log(vehicles[i][j]);
      }
  
  }
  </code></pre>
  
  <p>The result which i want to get is to listing the cars in the table where Cars are the headline and underneath are the Porsche, Mitsubishi and then Bikes are the next one.</p>