function collect(data) {
    return data.reduce(function(accum, rush) {
      return rush.statistics.reduce(aggregate, accum);  
    }, {});
  }
/**
   * Collects player who have rushed and aggregates their total rushed yards.
   * Does this by working into the nested statistics arrays and passing through
   * an accumulating object with keys as player names and values as their total
   * rush yardage
   * @param  {array} data - An array of rush events from a game
   * @return {object}       An aggregation of name
   */
Collects player who have rushed and aggregates their total rushed yards.
Does this by working into the nested statistics arrays and passing through
an accumulating object with keys as player names and values as their total
rush yardage
@param  {array} data - An array of rush events from a game
@return {object}       An aggregation of name
Collects player who have rushed and aggregates their total rushed yards . Does this by working into the nested statistics arrays and passing through an accumulating object with keys as player names and values as their total rush yardage @param { array } data - An array of rush events from a game @return { object } An aggregation of name
function collect(data) {
    return data.reduce(function(accum, rush) {
      return rush.statistics.reduce(aggregate, accum);  
    }, {});
  }
function collect ( data ) { return data . reduce ( function ( accum , rush ) { return rush . statistics . reduce ( aggregate , accum ) ; } , { } ) ; }
Collects player who have rushed and aggregates their total rushed yards.
Collects player who have rushed and aggregates their total rushed yards .