hope you can help me:
i try to get all the user who have the techno name on their abilities.
my json object look like (fake data): `
[
{
"name": "Thomas",
"firstname": "pardou",
"job": "Backend developer",
"technos": [
{
"name": "Javascript",
"appreciation": "Beginner"
},
{
"name": "Php",
"appreciation": "Expert"
},
{
"name": "Ruby",
"appreciation": "Regular"
},
{
"name": "Scrum",
"appreciation": "Ignore"
},
{
"name": "Démarchage",
"appreciation": "Guru"
}
],
"missions": [
[
{
"name": "Backend Developer"
},
{
"name": "Product Owner"
}
]
],
"createdAt": "2022-12-22T11:46:08.193Z",
"updatedAt": "2022-12-22T11:46:08.193Z",
"id": "63a44380da6f96d105b6d86b"
}
]
i try to di it with :
let filteredData = userData.filter(e => e.technos.name === data.name)
anyone can help me with a solution ? thanks