UNPKG

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