index.js 657 B

12345678910111213141516171819202122232425
  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;