Apply your JS skills to key Mozilla projects as an MDN Fellow! http://mzl.la/MDNFellowship

mozilla

Compare Revisions

Iterators and generators

Change Revisions

Revision 297633:

Revision 297633 by gartz on

Revision 297634:

Revision 297634 by gartz on

Title:
Iterators and generators
Iterators and generators
Slug:
JavaScript/Guide/Iterators_and_Generators
JavaScript/Guide/Iterators_and_Generators
Tags:
"JavaScript"
"JavaScript"
Content:

Revision 297633
Revision 297634
n258    <strong>var reset = yield current;n258    var reset = yield current;
n262    }</strong>n262    }
t274<strong>print(sequence.send(true)); // 1</strong>t274print(sequence.send(true)); // 1

Back to History