JSFiddle - React, Tailwind, and code Playground
JavaScript
const getNaturalRow = () => ({
_current: 0,
next() { return {
value: ++this._current,
done: this._current > 3,
}},
[Symbol.iterator]() { return this; },
});
for (const i of get)