js domtokenlist to array

JavaScript
Array.from(nodeList)
Source

Also in JavaScript: