With ES6, we now have a simple way to create an Array from a NodeList: the Array.from() function.
// nl is a NodeList
let myArray = Array.from(nl)
With ES6, we now have a simple way to create an Array from a NodeList: the Array.from() function.
// nl is a NodeList
let myArray = Array.from(nl)