source:
node_modules/ramda/es/internal/_arrayReduce.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 205 bytes |
Line | |
---|---|
1 | export default 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 | } |
Note:
See TracBrowser
for help on using the repository browser.