Answers for "javascript convert node list to 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 "javascript convert node list to array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language