mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 23:09:34 +00:00
7 lines
168 B
TypeScript
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;
|
|
}
|
|
};
|