Array at()
Widely available
The at()
method of arrays and typed arrays returns the item at an index, including negative indices for getting items relative to the end of an array. Also known as the relative indexing method.
To learn more, see
Array.prototype.at() at MDN.
Compatibility
- Chrome 92 Released on 2021-07-20
- Chrome Android 92 Released on 2021-07-20
- Edge 92 Released on 2021-07-22
- Firefox 90 Released on 2021-07-13
- Firefox for Android 90 Released on 2021-07-13
- Safari 15.4 Released on 2022-03-14
- Safari on iOS 15.4 Released on 2022-03-14
Specifications
- ECMAScript Language Specification (#sec-array.prototype.at), from TC39 (Ecma International).