/
TON618OFF
/
FinalPWHTML
Обзор
Документация
Войти
/
TON618OFF
/
FinalPWHTML
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/array.prototype.reduce/shim.js
14 строк
337 B
TON618OFF
не ну это ваще
23 июн 2024, 00:30
23 июн 2024, 00:30
e27ae20
Код
Авторство
О чём код?
'use strict'; var define = require('define-properties'); var getPolyfill = require('./polyfill'); module.exports = function shimArrayPrototypeReduce() { var polyfill = getPolyfill(); define( Array.prototype, { reduce: polyfill }, { reduce: function () { return Array.prototype.reduce !== polyfill; } } ); return polyfill; };