Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

copy object javascript

// es6
const obj = {name: 'john', surname: 'smith'};
const objCopy = {...obj};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #object #javascript
ADD COMMENT
Topic
Name
9+1 =