What is the most efficient way to filter or map a nodelist in ES6?
Based on my readings, I would use one of the following options:
[...nodelist].filt
I found a reference that uses map directly on the NodeList by
map
Array.prototype.map.call(nodelist, fn)
I haven't tested it, but it seems plausible that this would be faster because it should access the NodeList directly.