Q:

Best way to convert childNodes to array in underscore

I want to convert Element's childNodes to an array in javascript.
How do I convert childNodes into array? Any cool idea?

A:

I did this with _.toArray()
html part:
<div id="testdiv"><div id="t1"></div><div id="t2"></div><div id="t3"></div><div id="t4"></div><div id="t5"></div></div>

js:
var td = document.getElementById("testdiv");
console.log(_.toArray(td.childNodes));

