Glossary: Software Design Patterns in JavaScript
Generator
Also written: function*, yield
A function written with function* that uses yield to hand back one item at a time, pausing until the loop asks for the next. It is an easy way to write your own iterator.