polyfill.js 301 B

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