/
asias
/
new
Обзор
Документация
Войти
/
asias
/
new
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/array.prototype.reduce/shim.js
14 строк
337 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 shimArrayPrototypeReduce() { var polyfill = getPolyfill(); define( Array.prototype, { reduce: polyfill }, { reduce: function () { return Array.prototype.reduce !== polyfill; } } ); return polyfill; };