var newlist = new ShipList(); var laenge = this.list.length; for(var k=0; k< laenge;k++ ) { if(filterFunction.call(this, this.list[k])) { newlist.list.push(this.list[k]); } } this.list = newlist.list;