string.prototype.startswith
A robust & optimized `String.prototype.startsWith` polyfill, based on the ECMAScript 6 specification.
Last updated 4 months ago by nicolo-ribaudo .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install string.prototype.startswith 
SYNC missed versions from official npm registry.

ES6 String.prototype.startsWith polyfill Build status

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

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.

Other polyfills for String.prototype.startsWith are available:

Installation

Via npm:

npm install string.prototype.startswith

Then, in Node.js:

var startsWith = require('string.prototype.startswith');

In a browser:

<script src="https://bundle.run/string.prototype.startswith"></script>

NOTE: It's recommended that you install this module using a package manager such as npm, because loading multiple polyfills from a CDN (such as bundle.run) will lead to duplicated code.

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.

Current Tags

  • 1.0.0                                ...           latest (4 months ago)

3 Versions

  • 1.0.0                                ...           4 months ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 92
This Month 248
Last Day 9
Last Week 96
Last Month 782
Dependencies (2)
Dev Dependencies (5)
Dependents (80)

Copyright 2014 - 2016 © taobao.org |