some code with map it doesnt work

This commit is contained in:
2026-06-23 12:06:58 +02:00
parent 0ea04988a3
commit 64cb4a206e
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -55,3 +55,9 @@ document.getElementById("trier").addEventListener("click", function () {
});
afficherEquipe(triee);
});
const array = equipe.filter(function (stagiaire) {
return stagiaire.nom.toLowerCase().includes(mélissa, guillaume);
});
const mapped = array.map((x) => x - stagiaire.job - stagiaire.partie);
console.log(mapped);