ohctechv3/.svn/pristine/a0/a0569062ddb5e5babef84400e6b1bb371b82e5f2.svn-base

19 lines
427 B
Plaintext
Raw Normal View History

2024-10-28 15:03:36 +05:30
'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
var $IteratorPrototype = require('../Iterator.prototype/implementation');
module.exports = function shimIteratorPrototypeToArray() {
var polyfill = getPolyfill();
define(
$IteratorPrototype,
{ toArray: polyfill },
{ toArray: function () { return $IteratorPrototype.toArray !== polyfill; } }
);
return polyfill;
};