Baseline Widely Strings

String startsWith() and endsWith()

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

Baseline Status
Widely Available
Since 2015-09-30
First Core Launch
Firefox 17
2012-11-20
Core-3 Stability
1,044d (2.9y)
Last: Safari (2015-09-30)
BCD Keys Mapped
2
Group: Strings

Browser Support Timeline

Firefox v17 (2012-11-20) Firefox for Android v17 (2012-11-20) Chrome Android v36 (2014-07-16) Chrome v41 (2015-03-03) Edge v12 (2015-07-29) Safari on iOS v9 (2015-09-16) Safari v9 (2015-09-30)
Green dot marks the first browser release (2012-11-20); blue dots show subsequent browser launches (+1044d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Firefox desktop 17 2012-11-20
Firefox for Android mobile 17 2012-11-20
Chrome Android mobile 36 2014-07-16
Chrome desktop 41 2015-03-03
Edge desktop 12 2015-07-29
Safari on iOS mobile 9 2015-09-16
Safari desktop 9 2015-09-30

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
javascript.builtins.String.endsWith JS 1,044d (2.9y)
javascript.builtins.String.startsWith JS 1,044d (2.9y)