JavaScript Array Copia

var bar = foo.slice();
Energetic Echidna