0
Q:

turn nodelist into array

Array.prototype.slice.call(document.childNodes);
4
Array.from(nodelist);
2
// Get all buttons as a NodeList
var btns = document.querySelectorAll('button');

// Convert buttons NodeList to an array
var btnsArr = Array.from(btns);
1

New to Communities?

Join the community