Baseline Widely JavaScript
Generators
Generator functions (function*) create iterators that return multiple values, one after another, on-demand.
Baseline Status
Widely Available
Since 2016-09-20
First Core Launch
Firefox 26
2013-12-10
Core-3 Stability
1,015d (2.8y)
Last: Safari (2016-09-20)
BCD Keys Mapped
14
Group: JavaScript
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Firefox | desktop | 26 | 2013-12-10 |
| Firefox for Android | mobile | 26 | 2013-12-10 |
| Chrome Android | mobile | 39 | 2014-11-12 |
| Chrome | desktop | 39 | 2014-11-18 |
| Edge | desktop | 13 | 2015-11-12 |
| Safari on iOS | mobile | 10 | 2016-09-13 |
| Safari | desktop | 10 | 2016-09-20 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| javascript.builtins.Generator | JS | 1,015d (2.8y) |
| javascript.builtins.Generator.next | JS | 1,015d (2.8y) |
| javascript.builtins.Generator.return | JS | 497d (1.4y) |
| javascript.builtins.Generator.throw | JS | 1,015d (2.8y) |
| javascript.builtins.GeneratorFunction | JS | 1,015d (2.8y) |
| javascript.builtins.GeneratorFunction.GeneratorFunction | JS | 1,015d (2.8y) |
| javascript.operators.generator_function | JS | 1,015d (2.8y) |
| javascript.operators.generator_function.trailing_comma | JS | 211d |
| javascript.operators.yield | JS | 1,015d (2.8y) |
| javascript.operators.yield_star | JS | 959d (2.6y) |
| javascript.statements.generator_function | JS | 1,015d (2.8y) |
| javascript.statements.generator_function.IteratorResult_object | JS | 875d (2.4y) |
| javascript.statements.generator_function.not_constructable_with_new | JS | 280d |
| javascript.statements.generator_function.trailing_comma_in_parameters | JS | 211d |