4 ms·
You could also just convert the NodeList to an array by running something like [].slice.call(nodeList) That way you get all array methods, not just forEac
by Dunnorandom 13y ago
You could also just convert the NodeList to an array by running something like
[].slice.call(nodeList)
That way you get all array methods, not just forEach.