Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 1,274 posts.

Software Engineering
2018
1053

Copying objects in JavaScript

In this article we will look at the various ways an object can be copied in Javascript. We will take a look at both shallow and deep copying. While shallow copying is rather straightforward, deep copying is more tricky. Currently, there is a HTML5 specification for a deep copy algorithm but it is not publically…