source: trip-planner-front/node_modules/core-js/modules/esnext.iterator.to-array.js@ e29cc2e

Last change on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 431 bytes
Line 
1'use strict';
2// https://github.com/tc39/proposal-iterator-helpers
3var $ = require('../internals/export');
4var iterate = require('../internals/iterate');
5var anObject = require('../internals/an-object');
6
7var push = [].push;
8
9$({ target: 'Iterator', proto: true, real: true }, {
10 toArray: function toArray() {
11 var result = [];
12 iterate(anObject(this), push, { that: result, IS_ITERATOR: true });
13 return result;
14 }
15});
Note: See TracBrowser for help on using the repository browser.