Generators
Widely available since 2019-03-20
Generator functions (function*
) create iterators that return multiple values, one after another, on-demand.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 39 Released on 2014-11-18
- Chrome Android 39 Released on 2014-11-12
- Edge 13 Released on 2015-11-12
- Firefox 26 Released on 2013-12-10
- Firefox for Android 26 Released on 2013-12-10
- Safari 10 Released on 2016-09-20
- Safari on iOS 10 Released on 2016-09-13
Specifications
- ECMAScript Language Specification (#sec-generator-objects), from TC39 (Ecma International).
- ECMAScript Language Specification (#sec-generatorfunction-objects), from TC39 (Ecma International).