title: In JavaScript, what is the best way to convert a NodeList to an array?
body: <p>The DOM method <code>document.querySelectorAll()</code> (and a few others) return a <code>NodeList</code>.</p>
  
  <p>To operate on the list, e.g. using <code>forEach()</code>, the <code>NodeList</code> must first be converted to an <code>Array</code>.</p>
  
  <p>What's the best way to convert the <code>NodeList</code> to an <code>Array</code>?</p>