title: How to make a loop with this array?
body: <p>in Javascript for example I have this array:</p>
  
  <pre><code>var ids = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"];
  </code></pre>
  
  <p><em>(The number of objects in the array changes constantly)</em></p>
  
  <p>How could I get this result <em>(a new array)</em>, and how can I separate it? for example in 3 <em>(I probably need to make a loop for this)</em></p>
  
  <pre><code>var urls= ["example.com/?id0=1&amp;id1=2&amp;id2=3", "example.com/?id3=4&amp;id4=5&amp;id5=6", "example.com/?id6=7&amp;id7=8&amp;id8=9", "example.com/?id9=10"] 
  </code></pre>
  
  <p>Thanks.</p>