I'm using .at() most of the time:
.at()
let arr = [1, 2, 3, 4, 5]; let lastElement = arr.at(-1); console.log(lastElement);