I'd like to write some like this :
Array.prototype.copy(obj_or_array) {
if (obj_or_array instanceof Array)
this.array = this.concat ( obj_or_array.slice());
else
for(var key in obj_or_array) {this.push(obj_or_array[key]);}
}
'this.array' does not exist but I'd like to have it. Any idea ? Is it impossible ?