Programación funcional - Implementa el método filter en un prototipo

Tell us what’s happening:

Describe tu problema en detalle aquí.
what 's wrong?

Your code so far

Array.prototype.myFilter = function(callback) {
  const newArray = [];
  // Cambia solo el código debajo de esta línea
this.forEach(item => {
  if(callback(item))
 {
newArray.push(item);
}
});
  // Cambia solo el código encima de esta línea
  return newArray;
};

Your browser information:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Programación funcional - Implementa el método filter en un prototipo