Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Deep copy objects js JSON methods

var newObject = JSON.parse(JSON.stringify(oldObject));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Deep #copy #objects #js #JSON #methods
ADD COMMENT
Topic
Name
6+1 =