dist/underscore-contrib.js
function(array, fun, init) {
      var ret = [];
      var acc = init;

      _.each(array, function(v,k) {
        acc = fun(acc, array[k]);
        ret.push(acc);
      });

      return ret;
    }
function(array, fun, init) {
      var ret = [];
      var acc = init;

      _.each(array, function(v,k) {
        acc = fun(acc, array[k]);
        ret.push(acc);
      });

      return ret;
    }
function ( array , fun , init ) { var ret = [ ] ; var acc = init ; _ . each ( array , function ( v , k ) { acc = fun ( acc , array [ k ] ) ; ret . push ( acc ) ; } ) ; return ret ; }
Returns an array of each intermediate stage of a call to a `reduce`-like function.
Returns an array of each intermediate stage of a call to a reduce - like function .