title: ECMAScript5 deep copy of object and arrays
body: <p>I'd hope to find an example code to do a deep copying of objects in ECMAScript5.</p>
  
  <p>The copying should be able to clone</p>
  
  <ul>
  <li><p>Nested objects </p></li>
  <li><p>Nested arrays</p></li>
  <li><p>Nested objects in arrays (clone each array item individually)</p></li>
  </ul>
  
  <p>Note: jQuery.extend() does not seem to handle case 3). Also, I'd hope to do this in clean ECMAScript. Quick googling did not bring up any worthy implementations.</p>