DEV Community

Discussion on: How To Efficiently Get The Last Element Of An Array In JavaScript

Collapse
djamaile profile image
Djamaile

You can use .at(-1) these days.