dashboard
repositories
filestore
activity
search
login
刘苏义
/
ruoyi-api
forked from
ard/ruoyi-api
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
循环
Administrator
2023-08-19
ad3190e62a3e8384ab48240b5af2fccb3a734143
[~liusuyi/ruoyi-api.git]
/
ruoyi-ui
/
node_modules
/
es-abstract
/
helpers
/
reduce.js
1
2
3
4
5
6
7
8
9
'use strict';
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;
};