Note to Array!

Arrays are the same as objects, only they are addressed! be careful!

You can use concat or slice to copy the values as they are.
http://atamoco.boy.jp/javascript/array/copy.php

Attention!
If the structure is nested, concat cannot be used. For example, a two-dimensional array cannot be copied without repeating the "for" statement as follows.
for ( ){
 // create more arrays in the destination array
Copy destination array [ ] = [];
for (
){
destination array [
][ ] = source array [ ][*];
}
}