项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Deze repo is gearchiveerd. U kunt bestanden bekijken en het klonen, maar niet pushen of problemen/pull-requests openen.
 
 
 
 

15 regels
345 B

  1. 'use strict';
  2. var define = require('define-properties');
  3. var getPolyfill = require('./polyfill');
  4. module.exports = function shimArrayPrototypeIncludes() {
  5. var polyfill = getPolyfill();
  6. define(
  7. Array.prototype,
  8. { includes: polyfill },
  9. { includes: function () { return Array.prototype.includes !== polyfill; } }
  10. );
  11. return polyfill;
  12. };