Answers for "convert nodelist into array"

4

turn nodelist into array

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

nodelist to array

//spread the nodelist into an array
[...nodelist];
Posted by: Guest on August-20-2020

Code answers related to "convert nodelist into array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language