Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on I'm Switching to Python and Actually Liking It. Parent comment
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
so it settled on having this syntax for similar cases using "Symbol":
class Foo { *[Symbol.iterator]() { yield 1; yield 2; yield 3; } }
There are no comments on this comment yet.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
so it settled on having this syntax for similar cases using "Symbol":
class Foo { *[Symbol.iterator]() { yield 1; yield 2; yield 3; } }
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...