Web platform features explorer

Array includes()

Widely available since 2019-03-20
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.

Browser support (view on caniuse.com)

  • Chrome 47 Released on 2015-12-01
  • Chrome Android 47 Released on 2015-12-02
  • Edge 14 Released on 2016-08-02
  • Firefox 43 Released on 2015-12-15
  • Firefox for Android 43 Released on 2015-12-15
  • Safari 10 Released on 2016-09-20
  • Safari on iOS 10 Released on 2016-09-13