[O] Fill new array with null

This commit is contained in:
Hykilpikonna
2019-12-07 13:49:50 -05:00
parent 32313461c6
commit 1e6e21200a
+2 -2
View File
@@ -130,7 +130,7 @@ export default class Course
} }
else this.level = 'Unknown'; else this.level = 'Unknown';
this.termGrading = new Array(4); this.termGrading = new Array(4).fill(null);
} }
/** /**
@@ -189,7 +189,7 @@ export default class Course
} }
/** /**
* Get assignments of the selected time * Get assignments of the selected grading periods
*/ */
get assignments(): Assignment[] get assignments(): Assignment[]
{ {