title: How to change structure of array. reactJS. Is this possible
body: <p>I'm trying to change arrays' structure. is this even possible? using react.js. i think i need map, but when i try nothing happens.</p>
  <pre><code>// from this
  const stockresponseNoVolume = [
      [25.61, 26.45, 26.8, 26.62, 28.99],
      [26.73, 28.48, 26.9799, 28.17, 29.12],
      [25.33, 26.4, 25.055, 26.62, 27.19],
      [26.36, 27.26, 25.11, 28.11, 27.26],
      [1659657600, 1659916800, 1660003200, 1660089600, 1660176000],
    ];
  
  
  // to this
  const data = [
      ['date', '', '', '', ''],
      [new Date(1659657600), 20, 28, 38, 45],
      [new Date(1659916800), 31, 38, 55, 66],
      [new Date(1660003200), 50, 55, 77, 80],
      [new Date(1660089600), 77, 77, 66, 50],
      [new Date(1660176000), 68, 66, 22, 15],
    ];
  
  
  </code></pre>
  <p>edited:</p>
  <pre><code> const strValue = stockresponseNoVolume.map((t) =&gt; t[0]);
    // i get this
    const value = [25.61, 26.73, 25.33, 26.36, 1659657600];
  // i could type it manual, but how to do it auto that my map returns all arrays like that ?
  </code></pre>
  <p>After that, i need to replace last number place 1659657600 to first number place 25.61 for all arrays</p>