This frustrated me for like an hour today. The problem is that in JavaScript, arrays are treated like objects and are referenced when you really want to clone them. See embed.
This frustrated me for like an hour today. The problem is that in JavaScript, arrays are treated like objects and are referenced when you really want to clone them. See embed.