Capitalize names entered
This commit is contained in:
parent
e28f3c5aea
commit
0f50225d13
@ -152,7 +152,7 @@ function filterStudents(filteredLetter, students)
|
|||||||
let filteredStudents = [];
|
let filteredStudents = [];
|
||||||
for(let i = 0; i < students.length; i++)
|
for(let i = 0; i < students.length; i++)
|
||||||
{
|
{
|
||||||
let studentBoucle = students[i];
|
let studentBoucle = capitalize(students[i]);
|
||||||
if (studentBoucle[0] === filteredLetter) {
|
if (studentBoucle[0] === filteredLetter) {
|
||||||
filteredStudents.push(studentBoucle);
|
filteredStudents.push(studentBoucle);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user