Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 783 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 783 Bytes

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.