Answers for "how to clone object js keeping class"

1

how to clone an object

const first = {'name': 'alka', 'age': 21} 
const another = Object.assign({}, first);
Posted by: Guest on June-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language