Array.prototype.remove=function(s){ for(i=0;i<this.length;i++) if(s==this[i]) this.splice(i, 1); } var list = [4,5,6,"hola","chau"]; list.remove(5) list.remove("hola") console.log(list)
gracias man
gracias man
ResponderEliminar