const pipesIterator = Object.entries(pipes).values();
for (const [pipeNº, index] of pipesIterator) {
/* … */
let nextPipeNº = pipeNº;
while (pipes[++nextPipeNº] < lastIndex) {
// skip pipes which precede lastIndex
if (pipesIterator.next().done) {
break;
} else {
continue;
}
}
}
@aescling (pipes here is an array, if that helps)
@aescling oh i guess there is an Array::entries() method which i could be using instead of Object.entries(…).values() but same thing
@aescling because i needed to skip some iterations in a for…of loop?