main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
778 bytes
|
Rev | Line | |
---|
[d565449] | 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-bind/callBound');
|
---|
| 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.