Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


A robust & optimized ES3-compatible polyfill for the `String.prototype.startsWith` method in ECMAScript 6.

Subscribe to updates I use String.prototype.startsWith

Statistics on String.prototype.startsWith

Number of watchers on Github 98
Number of open issues 1
Average time to close an issue about 18 hours
Main language JavaScript
Open pull requests 1+
Closed pull requests 1+
Last commit over 5 years ago
Repo Created over 6 years ago
Repo Last Updated about 2 years ago
Size 234 KB
Organization / Authormathiasbynens
Page Updated
Do you use String.prototype.startsWith? Leave a review!
View String.prototype.startsWith activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating String.prototype.startsWith for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

ES6 String.prototype.startsWith polyfill Build status

A robust & optimized ES3-compatible polyfill for the String.prototype.startsWith method in ECMAScript 6.

Other polyfills for String.prototype.startsWith are available:


In a browser:

<script src="startswith.js"></script>

Via npm:

npm install string.prototype.startswith

Then, in Node.js:


// On Windows and on Mac systems with default settings, case doesnt matter,
// which allows you to do this instead:


Polyfills + test suites for String.prototype.endsWith and String.prototype.contains are available, too.


Mathias Bynens


This polyfill is available under the MIT license.

String.prototype.startsWith open pull requests (View All Pulls)
  • Remove bad piece of advice from README
String.prototype.startsWith list of languages used
Other projects in JavaScript