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

String.prototype.startsWith

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 almost 5 years ago
Repo Created over 5 years ago
Repo Last Updated over 1 year ago
Size 234 KB
Homepage https://mths.be/s...
Organization / Authormathiasbynens
Contributors1
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:

Installation

In a browser:

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

Via npm:

npm install string.prototype.startswith

Then, in Node.js:

require('string.prototype.startswith');

// On Windows and on Mac systems with default settings, case doesnt matter,
// which allows you to do this instead:
require('String.prototype.startsWith');

Notes

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

Author

twitter/mathias
Mathias Bynens

License

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