Como removo um elemento de uma lista usando forEach?
var people = ['alex','jason','matt'];
people.forEach(function(p){
if(p.length > 4){
//REMOVE THIS PERSON or pop it out of the list or whatever
}
});
console.log(people) //should return ['alex','matt']
Eu quero remover um elemento da lista, usando esse loop forEac