Testing array(object) references
making sure modification are done in other functions
JavaScript
function wrap(array, key){
array[0] [key] = "3";
}
var array = ["1", "2"];
console.log(array);
for (key in array){
var x = [array];
wrap(x, key);
}
console.log(array);