跳至主要內容

Array.prototype.includes

小于 1 分钟featurees-proposalmissing-example

Array.prototype.includesopen in new window

类型

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

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

入口点

core-js/proposals/array-includes