JavaScript Elemen Terakhir Kelas yang sama

var someElementsItems = document.querySelectorAll(".some-element");
console.log(someElementsItems[someElementsItems.length -1])
Relieved Rhinoceros