This package has been deprecated

Author message:

Use `String.prototype.includes` instead, available via `npm install string.prototype.includes`.

string.prototype.contains

0.2.0 • Public • Published

ES6 String.prototype.contains polyfill Build status

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

Other polyfills for String.prototype.contains are available:

Installation

In a browser:

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

Via npm:

npm install string.prototype.contains

Then, in Node.js:

require('string.prototype.contains');

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

Notes

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

Author

twitter/mathias
Mathias Bynens

License

This polyfill is available under the MIT license.

Package Sidebar

Install

npm i string.prototype.contains

Weekly Downloads

0

Version

0.2.0

License

none

Last publish

Collaborators

  • mathias