var a = ['val1','val2','val3']; var o = []; for (var i = 0; i < a.length; i++) { o.push(a[i]); } console.log(o);