Answers for "js queryselectorall to array"

4

turn nodelist into array

Array.prototype.slice.call(document.childNodes);
Posted by: Guest on February-26-2020
1

javascript querySelectorAll to array

const spanList = [...document.querySelectorAll("span")];
Posted by: Guest on July-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language