use the "…" spread operator, which works for both getElementsByClassName() and querySelectorAll() so you can port easily later.
// example to run on this page
[...document.getElementsByClassName("stories")].forEach(node => console.log(node));
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.