Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Negative index #2

Closed
zloirock opened this issue Apr 11, 2014 · 1 comment
Closed

Negative index #2

zloirock opened this issue Apr 11, 2014 · 1 comment

Comments

@zloirock
Copy link

Maybe add negative index support?
string.at(-1) vs string.at(string.length - 1)

@mathiasbynens
Copy link
Owner

This proposal is designed to mimic String.prototype.codePointAt, which doesn’t support negative indices, in every way. Sorry, WONTFIX.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants