turn nodelist into array

JavaScript
Array.prototype.slice.call(document.childNodes);Array.from(nodelist);
Source

Also in JavaScript: