Okay, so I have a HUGE array with 10,000+ strings and I want the loop through an array one string at a time, like I want to wait until the function is done to move on to the next string in the array.
Right now the loop puts strings as fast as it can through my function which I can't have because these strings are inserted into a $.get
request... And it makes WAY too much requests at a time...
Here's my code currently:
var sp = ["48343", "48383", "48934893", "438943", "47849345", "45843945", "47483923", "38445"];
for (var i = 0; i < sp.length; i += 1) {
check(sp[i]);
}
and please forgive me if I didn't explain good enough, instead of voting down kindly ask me what to explain, thanks :D