function collect(data) {
    return data.periods.reduce(function(accum, period) {
      return accum.concat(period.pbp.reduce(aggregate, []));  
    }, []);
  }
/**
   * Reduces and aggregates all of nested plays in each period and play-by-play
   * into a single array.
   * @param  {object} data - A game object
   * @return {array}         All of the rush event in a single game
   */
Reduces and aggregates all of nested plays in each period and play-by-play
into a single array.
@param  {object} data - A game object
@return {array}         All of the rush event in a single game
Reduces and aggregates all of nested plays in each period and play - by - play into a single array . @param { object } data - A game object @return { array } All of the rush event in a single game
function collect(data) {
    return data.periods.reduce(function(accum, period) {
      return accum.concat(period.pbp.reduce(aggregate, []));  
    }, []);
  }
function collect ( data ) { return data . periods . reduce ( function ( accum , period ) { return accum . concat ( period . pbp . reduce ( aggregate , [ ] ) ) ; } , [ ] ) ; }
Reduces and aggregates all of nested plays in each period and play-by-play
 into a single array.
Reduces and aggregates all of nested plays in each period and play - by - play into a single array .