项目原始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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

26 line
657 B

  1. 'use strict';
  2. var define = require('define-properties');
  3. var ES = require('es-abstract/es6');
  4. var implementation = require('./implementation');
  5. var getPolyfill = require('./polyfill');
  6. var polyfill = getPolyfill();
  7. var shim = require('./shim');
  8. var slice = Array.prototype.slice;
  9. /* eslint-disable no-unused-vars */
  10. var boundIncludesShim = function includes(array, searchElement) {
  11. /* eslint-enable no-unused-vars */
  12. ES.RequireObjectCoercible(array);
  13. return polyfill.apply(array, slice.call(arguments, 1));
  14. };
  15. define(boundIncludesShim, {
  16. getPolyfill: getPolyfill,
  17. implementation: implementation,
  18. shim: shim
  19. });
  20. module.exports = boundIncludesShim;