calculateAverageGrade() {
    const grades = Object.values(this.currentEpicGrades);
    if (!grades.length) {
      return null;
    }

    return grades.reduce((sum, value) => sum + value) / grades.length;
  }
/**
   * Calculates the average of all current level grades in epic mode.
   *
   * @returns {number} The average grade.
   */
Calculates the average of all current level grades in epic mode.
@returns {number} The average grade.
Calculates the average of all current level grades in epic mode . @returns { number } The average grade .
calculateAverageGrade() {
    const grades = Object.values(this.currentEpicGrades);
    if (!grades.length) {
      return null;
    }
    return grades.reduce((sum, value) => sum + value) / grades.length;
  }
calculateAverageGrade ( ) { const grades = Object . values ( this . currentEpicGrades ) ; if ( ! grades . length ) { return null ; } return grades . reduce ( ( sum , value ) => sum + value ) / grades . length ; }
Calculates the average of all current level grades in epic mode.
Calculates the average of all current level grades in epic mode .