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
ForEach, since ES5 can be used together with an index:
data.forEach(function (element, index) { if (element % 2 == 0) { data.splice(index, 1); } });