DEV Community

Discussion on: `at` coming soon to ECMAScript

Collapse
 
milichev profile image
Vadym Milichev

I wonder will it work

const getLast = Array.prototype.at(?, -1); // see https://github.com/tc39/proposal-partial-application
const last = getLast({ length: 6, 5: 'last' });
Enter fullscreen mode Exit fullscreen mode

and do we really need it 🤔😆