src/common/config/index.js
/**
   * Returns the provided list of teams with duplicates filtered out
   *
   * @param {array} teams array of teams to check for duplicates
   */
Returns the provided list of teams with duplicates filtered out
@param {array} teams array of teams to check for duplicates
Returns the provided list of teams with duplicates filtered out @param { array } teams array of teams to check for duplicates
filterOutDuplicateTeams(teams) {
    let newTeams = teams;
    const uniqueURLs = new Set();
    newTeams = newTeams.filter((team) => {
      return uniqueURLs.has(team.url) ? false : uniqueURLs.add(team.url);
    });
    return newTeams;
  }
filterOutDuplicateTeams ( teams ) { let newTeams = teams ; const uniqueURLs = new Set ( ) ; newTeams = newTeams . filter ( ( team ) => { return uniqueURLs . has ( team . url ) ? false : uniqueURLs . add ( team . url ) ; } ) ; return newTeams ; }
Returns the provided list of teams with duplicates filtered out
 @param {array} teams array of teams to check for duplicates
Returns the provided list of teams with duplicates filtered out @param { array } teams array of teams to check for duplicates