/
iliyagladkov
/
to-do-react
Обзор
Документация
Войти
/
iliyagladkov
/
to-do-react
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/array-includes/shim.js
14 строк
345 B
Iliya
Final
18 фев 2023, 15:04
18 фев 2023, 15:04
fae6815
Код
Авторство
О чём код?
'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; };