first comit
This commit is contained in:
9
corrections/25-tableau-methode-find.js
Normal file
9
corrections/25-tableau-methode-find.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const utilisateurs = [
|
||||
{ id: 1, nom: "Frank", email: "frank@example.com" },
|
||||
{ id: 2, nom: "Grace", email: "grace@example.com" },
|
||||
{ id: 3, nom: "Eve", email: "eve@example.com" }
|
||||
];
|
||||
|
||||
const utilisateurTrouve = utilisateurs.find(user => user.email === "eve@example.com");
|
||||
|
||||
console.log(utilisateurTrouve);
|
||||
Reference in New Issue
Block a user