Cloning: what's the fastest alternative to JSON.parse(JSON.stringify(x))?
<p>What's the fastest alternative to </p>

<pre><code>JSON.parse(JSON.stringify(x))
</code></pre>

<p>There must be a nicer/built-in way to perform a deep clone on objects/arrays, but I haven't found it yet.</p>

<p>Any ideas?</p>
