I’m new to this community and just started programming I couldn’t find anything about this topic can anyone please solve this.
I need to filter names who’s each points in array above 75.
i have tried this and unable iterate over an array.
const candidatesList = [{'name':'Blake Hodges', 'points':[76,98,88,84]},{'name':'James Anderson', 'points':[0,98,12,13]}]
const arrayOfSelecetedCandidates=[]
for(let object of candidatesList){
if (candidatesList.every(candidatesList.points>75)){
arrayOfSelecetedCandidates.push(candidatesList.name)
}
}
console.log(arrayOfSelecetedCandidates);```
output like this:-
```['Blake Hodges']```