nodelist are not Javascript Arrays to be exact this package turns them into arrays and lets you use functions like map, reduce, filter and sort on them
npm install nodelist2arrayNodelists are array like object and not proper javascript arrays which makes it impossible to use Array functions like reduce(), map(), filter(), sort() etc in them.
This package convert array like object to array
It extends to anything which has .length property but is not a an Array.
[https://jsperf.com/nodelist-to-array/27]
``javascript
document.querySelectorAll('div').map(...) //WON'T WORK!!!
var divSelectorArray = nodelist2array(document.querySelectorAll('div'))
divSelectorArray.map(...); //It will work properly
``
npm install nodelist2array