Capitalize names entered

This commit is contained in:
Divlo 2019-08-30 00:00:29 +02:00
parent e28f3c5aea
commit 0f50225d13

View File

@ -152,7 +152,7 @@ function filterStudents(filteredLetter, students)
let filteredStudents = [];
for(let i = 0; i < students.length; i++)
{
let studentBoucle = students[i];
let studentBoucle = capitalize(students[i]);
if (studentBoucle[0] === filteredLetter) {
filteredStudents.push(studentBoucle);
}