diff --git a/src/utils/gpa-utils.ts b/src/utils/gpa-utils.ts index 439aaad..4efdf12 100644 --- a/src/utils/gpa-utils.ts +++ b/src/utils/gpa-utils.ts @@ -107,6 +107,16 @@ export class GPAUtils return -1; } + /** + * Find the scale for a grade + * + * @param grade Letter grade or numeric grade + */ + public static findScale(grade: string): Scale | undefined + { + return this.SCALE.find(scale => scale.letter == grade); + } + /** * Calculate the total-mean (total/max) average *