Polyfill for arrays method inclides()
(ECMAScript 2016 (ECMA-262)).
npm i compatibility-array-includes
[1, 2, 3].includes(2); // true
[1, 2, 3].includes(4); // false
[1, 2, NaN].includes(NaN); // true
See more examples and description on the page.