JSFiddle - React, Tailwind, and code Playground

by Eduard Dyckman

JavaScript

const getNaturalRow = () => ({
    _current: 0,
    next() { return {
        value: ++this._current,
        done: this._current > 3,
    }},
    [Symbol.iterator]() { return this; },
});

for (const i of get)