Hacker News new | past | comments | ask | show | jobs | submit login

> For example even though `s.slice(1)` is a "copy" most engines (I believe V8 included) will use the same backing string for both.

That’s not a copy, it skips the first character!




It's semantically a copy of most of the string.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: