Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

polyfill-array-includes

Latusinski54.9kMIT2.0.0TypeScript support: included

A polyfill for the Array.prototype.includes method.

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>