Converter htmlcollection para matriz
const boxes = Array.from(document.getElementsByClassName('box'));
Lucky Locust
const boxes = Array.from(document.getElementsByClassName('box'));
//Use the Array.from() method to convert a nodelist or HTMLcollection into an array.
let elements = document.getElementsByClassName("classnameHere");
let arrayOfElements = Array.from(elements);
//Now arrayOfElements is iterable with methods such as .forEach().
var children = [].slice.call(document.getElementById(...).children);
Array.from(elements);
/* convert HTMLCollection */
const buttonsV1 = [...document.getElementsByClassName("modal-detail-movie")]
const buttonsV2 = Array.from(document.getElementsByClassName("modal-detail-movie"))
let arry = [...htmlCollection]