/
asias
/
new
Обзор
Документация
Войти
/
asias
/
new
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/array-includes/shim.js
14 строк
345 B
AnastasyaDemina
project
07 дек 2025, 23:03
07 дек 2025, 23:03
7c21e25
Код
Авторство
О чём код?
'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; };