I would like to know how to make a copy of an array without the reference.
Example of what I'd like to do:
var a = [1,2,3,4];
var b = a;
a[0] = 3;
b[0] = "nao me copie!"
console.log(a[0]) //mostrar 3
console.log(b[0]) //mostrar frase nao m...
asked on
25.08.2015 / 08:43