+ 1

Copying objects

Are assign() and parse() the major ways to copy an object without altering the original object?

24th Jan 2020, 12:46 PM
Stan Berger
Stan Berger - avatar
2 Answers
+ 3
This article does a good job of discussing how to create shallow and deep copies of JavaScript objects. https://scotch.io/bar-talk/copying-objects-in-javascript
25th Jan 2020, 3:42 AM
Lisa F
Lisa F - avatar
+ 1
Wow! Thanks - that is a really good overview!!
26th Jan 2020, 3:22 AM
Stan Berger
Stan Berger - avatar