artdaq_node_server  v1_00_08
 All Classes Namespaces Files Variables Pages
_arrayReduceRight.js
1 
13 function arrayReduceRight(array, iteratee, accumulator, initAccum) {
14  var length = array == null ? 0 : array.length;
15  if (initAccum && length) {
16  accumulator = array[--length];
17  }
18  while (length--) {
19  accumulator = iteratee(accumulator, array[length], length, array);
20  }
21  return accumulator;
22 }
23 
24 module.exports = arrayReduceRight;