DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+2 =
Submit