UNPKG

779 BJavaScriptView Raw
1'use strict';
2
3var define = require('define-properties');
4var RequireObjectCoercible = require('es-abstract/2023/RequireObjectCoercible');
5var callBind = require('call-bind');
6var callBound = require('call-bind/callBound');
7
8var implementation = require('./implementation');
9var getPolyfill = require('./polyfill');
10var polyfill = callBind.apply(getPolyfill());
11var shim = require('./shim');
12
13var $slice = callBound('Array.prototype.slice');
14
15/* eslint-disable no-unused-vars */
16var boundShim = function includes(array, searchElement) {
17/* eslint-enable no-unused-vars */
18 RequireObjectCoercible(array);
19 return polyfill(array, $slice(arguments, 1));
20};
21define(boundShim, {
22 getPolyfill: getPolyfill,
23 implementation: implementation,
24 shim: shim
25});
26
27module.exports = boundShim;