|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
769 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var define = require('define-properties');
|
|---|
| 4 | var RequireObjectCoercible = require('es-object-atoms/RequireObjectCoercible');
|
|---|
| 5 | var callBind = require('call-bind');
|
|---|
| 6 | var callBound = require('call-bound');
|
|---|
| 7 |
|
|---|
| 8 | var implementation = require('./implementation');
|
|---|
| 9 | var getPolyfill = require('./polyfill');
|
|---|
| 10 | var polyfill = callBind.apply(getPolyfill());
|
|---|
| 11 | var shim = require('./shim');
|
|---|
| 12 |
|
|---|
| 13 | var $slice = callBound('Array.prototype.slice');
|
|---|
| 14 |
|
|---|
| 15 | /* eslint-disable no-unused-vars */
|
|---|
| 16 | var boundShim = function includes(array, searchElement) {
|
|---|
| 17 | /* eslint-enable no-unused-vars */
|
|---|
| 18 | RequireObjectCoercible(array);
|
|---|
| 19 | return polyfill(array, $slice(arguments, 1));
|
|---|
| 20 | };
|
|---|
| 21 | define(boundShim, {
|
|---|
| 22 | getPolyfill: getPolyfill,
|
|---|
| 23 | implementation: implementation,
|
|---|
| 24 | shim: shim
|
|---|
| 25 | });
|
|---|
| 26 |
|
|---|
| 27 | module.exports = boundShim;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.