Best of 2018

The blog posts Hacker News loved most in 2018. 1,274 posts.

Software Engineering
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…