Pibd-21_Alekseev_I.S._Inter.../IP/node_modules/array-includes/shim.js
VanyaAlekseev c91124ead4 lab3
2023-12-21 21:08:22 +04:00

15 lines
345 B
JavaScript

'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimArrayPrototypeIncludes() {
var polyfill = getPolyfill();
define(
Array.prototype,
{ includes: polyfill },
{ includes: function () { return Array.prototype.includes !== polyfill; } }
);
return polyfill;
};