UNPKG

371 BJavaScriptView Raw
1'use strict';
2var $ = require('../internals/export');
3var $toArray = require('../internals/async-iterator-iteration').toArray;
4
5// `AsyncIterator.prototype.toArray` method
6// https://github.com/tc39/proposal-async-iterator-helpers
7$({ target: 'AsyncIterator', proto: true, real: true }, {
8 toArray: function toArray() {
9 return $toArray(this, undefined, []);
10 }
11});