← Back To API Reference

.reduce

.reduce(
    function(any accumulator, any item, int index, int length) reducer,
    [any initialValue]
) -> Promise

Same as Promise.reduce(this, reducer, initialValue).