title: How to get a particular attribute from an array of array objects?
body: <p>I have an Array of Arrays, and each Array consists of objects. Here is a simplified version of what I'm referring to (it is a console.log of my original array) -</p>
  <pre><code>Array - [Array(2), Array(3), Array(2)]
  </code></pre>
  <p>Each Array has objects in the following format (taking the first array from above) -</p>
  <pre><code>Array(2) - 
  0: {name: &quot;test&quot;, score:40, date: &quot;2018-09-18T00:00:00.000Z&quot;}
  1: {name: &quot;test2&quot;, score:50 date: &quot;2018-09-18T00:00:00.000Z&quot;}
  </code></pre>
  <p>The other arrays are similar with the same attributes and different values.</p>
  <p>I am trying to fetch the name attribute from each of these objects. I tried the below code - but I end up getting an undefined value:</p>
  <pre class="lang-js prettyprint-override"><code>const test1= array1.map(x=&gt; x.values) // this gives me the array of arrays
  const test2 = test1.map(function(y){return y.name})// this is my attempt to get the 'name' attribute from all of the arrays that include the objects.
  </code></pre>
  <p>What am I missing out on here? Is there a better way to get the attribute using arrow functions?</p>