BASELINE NowYouCanUse.com
Widely Available Strings
id: string-startsends-with

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: Achieved Widely Available on Mar 30, 2018 (Cross-browser Newly Available since Sep 30, 2015).
Desktop Browser Engine Support
Google Chrome
41
Supported
Mozilla Firefox
17
Supported
Apple Safari
9
Supported
Microsoft Edge
12
Supported
Mobile Browser Engine Support
Chrome Android
36
Firefox Android
17
Safari iOS
9
Specifications and References