tips & tricks

Cloning an Array with JavaScript: Part 2

I wrote a post about cloning arrays, and a piece of code I had found in a code base I was working on. After writing that post, a couple of readers brought some alternative methods, and concerns to my attention. That is what I will cover in this post...

Link

Cloning an Array with JavaScript

Earlier today I was perusing a code base that I am working in, and found a function named cloneArray. This function looked something like this...

Link