esnext.async-iterator.to-array.js 335 B

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