Array
var array = [
{
item: "abcd1234",
data: "something"
},
{
item: "4321dcba",
data: "something"
},
];
Array length can be randomly from 1 to 10
I'm making http request for all these items.
array.forEach(function(item) {
var url = "www.something.com?id=" + item.item;
//making request
});
Now I need 1 - 10 requests per array depends on a array length.
Lets say I have 10 arrays with 10 elements in it. Its 100 requests.
I could do this with only 1 request per array if I use url like this
www.something.com?id=abcd1234&id2=4321dcba
How do I loop all array values to the url if I don't know how many elements there is?