Files
reverse-engineering-anything/tests/support/completeSteps.ts
T

7 lines
168 B
TypeScript

export const completeSteps = <Value>(steps: Iterator<void, Value>): Value => {
for (;;) {
const next = steps.next();
if (next.done) return next.value;
}
};