2
arantr
8y

Not saying that JS is my favorite language but I like JSON.stringify(object)

Because:
1. console.log(JSON.stringify(object));
2. let clone = JSON.parse(JSON.stringify(object));

Comments
  • 0
    That's probably not the best way to clone an object in js...
Add Comment