Chad Warden :pleromatan: on Nostr: ok, so i need to iterate through an array, but i need to go through 5 at a time, then ...
ok, so i need to iterate through an array, but i need to go through 5 at a time, then idle for 2 minutes
one would think its easy:
for (var i = 0; i < arr.length; i++) {
var previous = 0
for (var x = 0; x < previous+5; x++)
{
arr[x];
}
previous = x
setTimeout(nothingFunction(), 120000)
}
but this isnt working. fuck you js
one would think its easy:
for (var i = 0; i < arr.length; i++) {
var previous = 0
for (var x = 0; x < previous+5; x++)
{
arr[x];
}
previous = x
setTimeout(nothingFunction(), 120000)
}
but this isnt working. fuck you js