🏠 New in High Baseline Support: Async iterators and the for await..of loop

July 15, 2022

caniuse · mdn · [spec]([‘https://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-asynciteratorprototype’, ‘https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-for-in-and-for-of-statements’])

Asynchronous iterator objects, such as those returned by promises or generator functions, are iterable with the for await .. of loop.

Source features