19 lines
415 B
Plaintext
19 lines
415 B
Plaintext
'use strict';
|
|
|
|
var define = require('define-properties');
|
|
var getPolyfill = require('./polyfill');
|
|
|
|
var $IteratorPrototype = require('../Iterator.prototype/implementation');
|
|
|
|
module.exports = function shimIteratorPrototypeFind() {
|
|
var polyfill = getPolyfill();
|
|
|
|
define(
|
|
$IteratorPrototype,
|
|
{ find: polyfill },
|
|
{ find: function () { return $IteratorPrototype.find !== polyfill; } }
|
|
);
|
|
|
|
return polyfill;
|
|
};
|