Baseline Widely Strings
String trimStart() and trimEnd()
The trimStart() and trimEnd() methods of strings return a new string with whitespace removed from the beginning or end of the string.
Baseline Status
Widely Available
Since 2020-01-15
First Core Launch
Chrome 66
2018-04-17
Core-3 Stability
153d
Last: Safari (2018-09-17)
BCD Keys Mapped
2
Group: Strings
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 66 | 2018-04-17 |
| Chrome Android | mobile | 66 | 2018-04-17 |
| Firefox | desktop | 61 | 2018-06-26 |
| Firefox for Android | mobile | 61 | 2018-06-26 |
| Safari | desktop | 12 | 2018-09-17 |
| Safari on iOS | mobile | 12 | 2018-09-17 |
| Edge | desktop | 79 | 2020-01-15 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| javascript.builtins.String.trimEnd | JS | 153d |
| javascript.builtins.String.trimStart | JS | 153d |