title: What is the purpose of calling Array.prototype.slice against a NodeList?
body: <p>I was looking up how to iterate NodeLists and I came across the following bit of code.</p>
  
  <pre class="lang-js prettyprint-override"><code>var nodesArray = Array.prototype.slice.call(nodeList);
  nodesArray.forEach(function(node) { 
      //...
  })
  </code></pre>
  
  <p>What is the purpose of calling <code>Array.prototype.slice</code> against a NodeList?</p>