@Lady why
@aescling because i needed to skip some iterations in a for…of loop?
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;
}
}
}