/polyfill-array-includes

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

Primary LanguageJavaScriptMIT LicenseMIT

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>