2
How do I go through an array of names using the javascript filter function where the return is just people’s names with the surname "Carvalho"?
Example:
let nomes = ["Thiago Carvalho", "Renata Carvalho", "Alexandre Otoni", "Guilherme Otoni de Carvalho"];
nomes.filter(item => ???);
Thank you, it was just the solution I was looking for!
– Thiago Carvalho