Web features explorer

Array includes()

Widely available
Tags: javascript Groups: JavaScript > Collections > Arrays JavaScript > Collections > Typed arrays

The includes() method of arrays and typed arrays returns whether a given value appears in the array. To learn more, see Array.prototype.includes(), TypedArray.prototype.includes() at MDN.

Compatibility