title: Adding values to an array at specific indexes containing the data from within the array
body: <p>My initial Data looks like this:</p>
  <pre><code>const data = [ 
    {date: &quot;jan.15&quot;, video: 2, chat: 1, other: 3}, 
    {date: &quot;jan.16&quot;, video: 5, chat: 3, other: 3}
  ]
  </code></pre>
  <p>In order to use this data I had to turn each of these object into an array. So I did this:</p>
  <pre><code>   const count = data.map((item, idx)=&gt; {
          let value = Object.values(item);
           return value
      }) || [];
  </code></pre>
  <p>which output:</p>
  <pre><code>[
    [&quot;jan.15&quot;, 2, 1, 3]
    [&quot;jan.16&quot;, 5, 3, 3]
  ]
  </code></pre>
  <p>However I need to add values to these arrays that include the data from the array..
  So I need an output of something like this:</p>
  <pre><code>[
    [&quot;jan.15&quot;, 2, &quot;jan.15, 2&quot;, 1, &quot;jan.15, 1&quot;, 3, &quot;jan.15, 3&quot;],
    [&quot;jan.16&quot;, 5,&quot;jan.16, 5&quot;, 3,&quot;jan.16, 3&quot;, 3, &quot;jan.16, 3&quot;]
  ]
  </code></pre>
  <p>And Im not sure how to read the values and insert them into the array at specific points.</p>
  <p>The date ex)<code>jan.15</code> is associated with each of the following values in the array. So following each value I need to insert the data+theValue to be used in my application.</p>