String at()Baseline · Widely available
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.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 14, 2022. Widely available since Sep 14, 2024.
Browser support
DesktopChrome
1–91Not supported
92+Supportedsince Jul 20, 2021
Current: 155Edge
12–91Not supported
92+Supportedsince Jul 22, 2021
Current: 154Firefox
1–89Not supported
90+Supportedsince Jul 13, 2021
Current: 157Safari
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27MobileChrome Android
18–91Not supported
92+Supportedsince Jul 20, 2021
Current: 155Firefox Android
4–89Not supported
90+Supportedsince Jul 13, 2021
Current: 157Safari iOS
1–15.3Not supported
15.4+Supportedsince Mar 14, 2022
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: at.
Feature detection
JS · check before using
if ("at" in String || ("prototype" in String && "at" in String.prototype)) {
// String.at is available
}