title: Javascript multilevel object spread operator
body: <p>I have an array of objects, I want all data out from all objects into multiple arrays</p>
  <pre class="lang-js prettyprint-override"><code>const obj = [
    {
      school: {
        name: 'abc',
        students: [
          {
            class: 'A',
            name: 'jhon',
          },
          {
            class: 'B',
            name: 'Doe',
          },
        ],
      },
    },
    {
      school: {
        name: 'XYZ',
        students: [
          {
            class: 'C',
            name: 'Cena',
          },
          {
            class: 'B',
            name: 'Big show',
          },
        ],
      },
    },
  ];
  </code></pre>
  <p>I want result something like</p>
  <pre><code>[ [&quot;abc&quot;, &quot;xyz&quot;], [&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;B&quot;], [&quot;jhon&quot;, &quot;Doe&quot;, &quot;Cena&quot;, &quot;Big show&quot;]]
  </code></pre>
  <p>Any help will be appreciated</p>