Web features explorer

Generators

Widely available since 2019-03-20
Tags: javascript Groups: JavaScript

Generator functions (function*) create iterators that return multiple values, one after another, on-demand.

Learning resources on MDN

Browser support (view on caniuse.com)