source: imaps-frontend/node_modules/array-includes/index.js

main
Last change on this file 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
Line 
1'use strict';
2
3var define = require('define-properties');
4var RequireObjectCoercible = require('es-object-atoms/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;
Note: See TracBrowser for help on using the repository browser.