Hallo Enrico,
Array.prototype.contains = function (obj)
{
var i = this.length;do
{
if (this[i] === obj)
das dürfte auch nicht klappen, der Arrayindex läuft von 0 bis length-1
return i;
i--;
}
while (i !== -1)return -1;
}
Gruß, Jürgen
Hallo Enrico,
Array.prototype.contains = function (obj)
{
var i = this.length;do
{
if (this[i] === obj)
das dürfte auch nicht klappen, der Arrayindex läuft von 0 bis length-1
return i;
i--;
}
while (i !== -1)return -1;
}
Gruß, Jürgen