Skip to content

alfaslash/compatibility-array-includes

Repository files navigation

Polyfill for Array.includes()

Version

NPM

Polyfill for arrays method inclides() (ECMAScript 2016 (ECMA-262)).

Installation

npm i compatibility-array-includes

Usage

[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.

About

Polyfill for arrays method `includes`

Resources

License

Stars

Watchers

Forks

Packages

No packages published