polyfill-array-includes

A polyfill for the Array.prototype.includes method.

Usage no npm install needed!

<script type="module">
  import polyfillArrayIncludes from 'https://cdn.skypack.dev/polyfill-array-includes';
</script>

README

Polyfill Array.prototype.includes

This is a polyfill for the Array.prototype.includes method based on the code from MDN.

Installation

npm install polyfill-array-includes

yarn add polyfill-array-includes

Usage

With ES6:

import 'polyfill-array-includes';

In Browser:

<script src="/node_modules/polyfill-array-includes/index.js"></script>