turn nodelist into array
snippet in javascript

turn nodelist into array

user4294

Array.prototype.slice.call(document.childNodes);

nodelist to array

user8557

Array.from(nodelist);