source:
node_modules/ramda/src/internal/_arrayReduce.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 222 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | function _arrayReduce(reducer, acc, list) { |
2 | var index = 0; | |
3 | var length = list.length; | |
4 | ||
5 | while (index < length) { | |
6 | acc = reducer(acc, list[index]); | |
7 | index += 1; | |
8 | } | |
9 | ||
10 | return acc; | |
11 | } | |
12 | ||
13 | module.exports = _arrayReduce; |
Note:
See TracBrowser
for help on using the repository browser.