Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/helpers/reduce.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 172 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/helpers/reduce.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/helpers/reduce.js
-
curl -L -o reduce.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/helpers/reduce.js
172 Bytes
| ; | |
| module.exports = function reduce(arr, fn, init) { | |
| var acc = init; | |
| for (var i = 0; i < arr.length; i += 1) { | |
| acc = fn(acc, arr[i], i); | |
| } | |
| return acc; | |
| }; | |