DEV Community

Discussion on: 3 cool things you can do with Python indexing

Collapse
 
mariamodan profile image
Maria

That's a really nice workaround to use slicing and negative indexes in JavaScript! I do wish sometimes that js array would be as neat to work with as python lists haha

Collapse
 
daksamit profile image
Dominik Aksamit

Maybe someday :)
Generally, proxies are a really interesting way to enhance javascript objects and arrays and use them in a way we didn't even imagine what is possible :D