esnext.async-iterator.to-array.js 306 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 }, {
  6. toArray: function toArray() {
  7. return $toArray(this);
  8. }
  9. });