How do I go through an array of names using the filter function of javascript where the return is just the names of people with the surname "Carvalho"?
Example:
let nomes = ["Thiago Carvalho", "Renata Carvalho", "Alexandre Otoni", "Guilherme Otoni de Carvalho"];
nomes.filter(item => ???);