DEV Community

loading...

Discussion on: Array Indexing Method

Collapse
shubhambattoo profile image
Shubham Battoo Author

Thats already there, if you do something like.

arr[-1] ; // undefined
Enter fullscreen mode Exit fullscreen mode

That is why they are not going with that approach.