I want to push an array in the other array.I know concat() but what i want is not this.
Two dimensional array
perhaps:
var a = [],b = [],c = [];
a.push(1);
b.push(a);
console.log(b); //[[1]]
a.push(2);
console.log(b) //[[1,2]]
a.push(3);
console.log(b) //[[1,2,3]]
b will be changed if a is changed,what i want is
var a = [],b = [],c = [];
a.push(1);
b.push(a);
console.log(b) //[[1]]
a.push(2);
console.log(b) //[[1]]
a.push(3);
console.log(b) //[[1]]