00001 00013 function arrayReduceRight(array, iteratee, accumulator, initAccum) { 00014 var length = array == null ? 0 : array.length; 00015 if (initAccum && length) { 00016 accumulator = array[--length]; 00017 } 00018 while (length--) { 00019 accumulator = iteratee(accumulator, array[length], length, array); 00020 } 00021 return accumulator; 00022 } 00023 00024 module.exports = arrayReduceRight;