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

# String startsWith() and endsWith() (`string-startsends-with`)

The startsWith() and endsWith() methods of strings returns whether a search string appears at the beginning or end of the provided string.

- **Group**: Strings
- **Baseline**: Widely Available
- **Newly Available Date**: 2015-09-30
- **Widely Available Date**: 2018-03-30
- **Specification**: https://tc39.es/ecma262/multipage/text-processing.html#sec-string-objects
- **Constituent BCD keys**: 2

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 17 | 2012-11-20 |
| Firefox for Android | 17 | 2012-11-20 |
| Chrome Android | 36 | 2014-07-16 |
| Chrome | 41 | 2015-03-03 |
| Edge | 12 | 2015-07-29 |
| Safari on iOS | 9 | 2015-09-16 |
| Safari | 9 | 2015-09-30 |

