Cloning an object in JavaScript and avoiding Gotchas - DEV Community

Cloning an object in JavaScript and avoiding Gotchas - DEV Community