javascript querySelectorAll to array

JavaScript
const spanList = [...document.querySelectorAll("span")];
Source

Also in JavaScript: