Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript clone array without reference

var tempArray = JSON.parse(JSON.stringify(mainArray));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #clone #array #reference
ADD COMMENT
Topic
Name
3+4 =