---
id: "string-trim-startend"
kind: "web-feature"
canonical: "https://timetostable.com/feature/string-trim-startend"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# String trimStart() and trimEnd() (`string-trim-startend`)

The trimStart() and trimEnd() methods of strings return a new string with whitespace removed from the beginning or end of the string.

- **Group**: Strings
- **Baseline**: Widely Available
- **Newly Available Date**: 2020-01-15
- **Widely Available Date**: 2022-07-15
- **Specification**: https://tc39.es/ecma262/multipage/text-processing.html#sec-string-objects
- **Constituent BCD keys**: 2

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 66 | 2018-04-17 |
| Chrome Android | 66 | 2018-04-17 |
| Firefox | 61 | 2018-06-26 |
| Firefox for Android | 61 | 2018-06-26 |
| Safari | 12 | 2018-09-17 |
| Safari on iOS | 12 | 2018-09-17 |
| Edge | 79 | 2020-01-15 |

