← Back to release summary

Array.prototype.includes

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 47)
Intent stage
None

Summary

Method to determine whether an array includes a given element.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

Samples: https://googlechrome.github.io/samples/array-includes-es7/index.html

View on chromestatus.com