SyntaxFix
Write A Post
Hire A Developer
Questions
you can use use JQuery for deep copying :
var arr =[['abc'],['xyz']]; var newArr = $.extend(true, [], arr); newArr.shift().shift(); console.log(arr); //arr still has [['abc'],['xyz']]