This is a polyfill for the Array.prototype.includes method based on the code from MDN.
npm install polyfill-array-includes
yarn add polyfill-array-includes
With ES6:
import 'polyfill-array-includes';
In Browser:
<script src="/node_modules/polyfill-array-includes/index.js"></script>