Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to clone an object

const first = {'name': 'alka', 'age': 21} 
const another = Object.assign({}, first);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clone #object
ADD COMMENT
Topic
Name
9+8 =