DEV Community

Discussion on: `at` coming soon to ECMAScript

Collapse
 
laurieontech profile image
Laurie

I believe I explained that in the post. It’s already a valid key.

Collapse
 
jsnanigans profile image
Brendan Mullins

Sure, but does it make sense that -1 is a key? That actually sounds like a bug to me xD instead all negative numbers could be used as reverse indexes instead of looking for a value in the array where there really should not be any.