Relative Indexing Method (original) (raw)
We provide a new method, at()
, that is on the prototype of the built-in indexable objects: Array, String, and TypedArrays objects. The method supports relative indexing from the end when passed a negative index.