title: What is the difference between Object.assign and JSON.parse(JSON.stringify(obj)) for deep cloning of an object?
body: <p>I want to know is there a difference between</p>
  
  <pre><code>Object.assign({}, obj)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>JSON.parse(JSON.stringify(obj))
  </code></pre>
  
  <p>for deep cloning of an object? Can anyone explain if they have any idea?</p>