DEV Community

Discussion on: What Does `slice(1, -1)` Do?

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma

And just about last night, I was wishing if JS had a feature like Python: str[1:-1]

You found it 😄 Thanks a lot!