dashboard
repositories
filestore
activity
search
login
刘苏义
/
ruoyi-api
forked from
ard/ruoyi-api
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
车牌
aijinhui
2023-12-29
5dfafc707d5bcc8a892ee231bddd145a89582e76
[~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;
};