vkarpov15 582 days ago. link 1 point ▲ ▼I disagree, I prefer `slice()` :) for one thing, substr is considered a "legacy function." Also I mix up substr() and substring() so much that I just use `slice()` to avoid confusion.