title: Why Object.assign works with an array?
body: <p>So I was reading an article to clone an object and array. All of them mentioned that Object.assign() can be used to copy an object but no one mentioned that Object.assign() will also work to shallow copy an array. </p>
  
  <p>Could anybody explain how it works?</p>
  
  <p><code>Code to Explain is in JS Bin :</code> <a href="https://jsbin.com/kaqocixize/edit?js,console" rel="nofollow noreferrer">https://jsbin.com/kaqocixize/edit?js,console</a></p>