0.0.1 • Published 9 years ago

@nathanfaucett/array-reduce_right v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

array-reduce_right

applies a function against an accumulator and each value of the array (from left-to-right) to reduce it to a single value.

var arrayReduceRight = require("@nathanfaucett/array-reduce_right");


arrayReduceRight([0, 1, 2, 3, 4], function(currentValue, value) {
    return currentValue + value;
}) === 10;