DEV Community

loading...

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!

Forem Open with the Forem app