1 | ;
|
2 |
|
3 | var implementation = require('./implementation');
|
4 |
|
5 | module.exports = function getPolyfill() {
|
6 | if (
|
7 | Array.prototype.includes
|
8 | && Array(1).includes(undefined) // https://bugzilla.mozilla.org/show_bug.cgi?id=1767541
|
9 | ) {
|
10 | return Array.prototype.includes;
|
11 | }
|
12 | return implementation;
|
13 | };
|