source: node_modules/ramda/src/internal/_arrayReduce.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 222 bytes
RevLine 
[d24f17c]1function _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
13module.exports = _arrayReduce;
Note: See TracBrowser for help on using the repository browser.