Filtern Sie Arrays JS heraus

let newArray = array.filter(function(item) {
  return condition;
});
Philan ISithembiso