Web features explorer

String at()

Widely available
Tags: javascript Groups: JavaScript > Primitive types > Strings

The at() method of strings returns the character (one UTF-16 code unit) at an index, including negative indices for getting the character relative to the end of the string. Also known as the relative indexing method. To learn more, see String.prototype.at() at MDN.

Compatibility

Specifications