Array.from Foreach

Array.from(document.querySelectorAll(".ClassName")).forEach(function(element) {
//Stuff
});
ayaan