Skip to main content

Array.prototype.includes

Less than 1 minutefeaturees-proposalmissing-example

Array.prototype.includesopen in new window

Types

interface Array<T> {
  includes(searchElement: T, from?: number): boolean;
}

interface TypedArray {
  includes(searchElement: number, from?: number): boolean;
}

Entry points

core-js/proposals/array-includes