Previously answered questions here said that this was the fastest way:
//nl is a NodeList var arr = Array.prototype.slice.call(nl);
In benc
NodeList.prototype.forEach = Array.prototype.forEach;
Now you can do document.querySelectorAll('div').forEach(function()...)