TLDR Web Dev · QUICK LINKS
HOW JAVASCRIPT'S AT() METHOD MAKES ARRAY INDEXING EASIER
Summary from the TLDR Web Dev newsletter
Array.prototype.at() returns the element at the index - you can pass in -1 to get the last item and it's an overall readability improvement.