javascript forEach on nodelist
<p>Consider the following code:</p>

<pre><code>var els = document.querySelectorAll('.myClassName');

Array.prototype.forEach.call(els, function(el) {
  console.log(el.id);
});
</code></pre>

<p>The var <code>els</code> contains a nodelist, which is not an array, and <code>forEach</code> applies on arrays only right?
Is the above code actually a hack?</p>