Array.fromAsync()
Newly available since 2024-01-25
The Array.fromAsync()
static method copies items from an async iterable object to make a new array.
Learning resources on MDN
Browser support
- Chrome 121 Released on 2024-01-23
- Chrome Android 121 Released on 2024-01-23
- Edge 121 Released on 2024-01-25
- Firefox 115 Released on 2023-07-04
- Firefox for Android 115 Released on 2023-07-04
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27
Specifications
- ES Array.fromAsync (2022) (#sec-array.fromAsync), from TC39 (Ecma International).