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
You shouldn't modify the array you're looping on. You can produce a new one, though:
var newPeople = []; people.forEach(function(p){ if(p.length <= 4){ newPeople.push(p); } });
Why you shouldn't modify array you're looping.