mirror-rhinstaller-node-cache/string.prototype.includes
2026-07-22 07:58:23 +00:00
..
tests 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
.editorconfig 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
.eslintrc 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
.travis.yml 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
auto.js 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
implementation.js 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
index.js 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
LICENSE 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
package.json 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
polyfill.js 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
README.md 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
shim.js 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00

ES6 String.prototype.includes polyfill Build status

A robust & optimized polyfill for the String.prototype.includes method (previously known as String.prototype.contains) 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.includes are available:

Installation

Via npm:

npm install string.prototype.includes

Then, in Node.js:

var includes = require('string.prototype.includes');

In a browser:

<script src="https://bundle.run/string.prototype.includes"></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.startsWith and String.prototype.endsWith are available, too.

Author

twitter/mathias
Mathias Bynens

License

This polyfill is available under the MIT license.