跳至主要內容

从最后开始查找 Array

小于 1 分钟featurees-proposalmissing-example

从最后开始查找 Arrayopen in new window

类型

interface Array<T> {
  findLast(callbackfn: (value: T, index: number, target: Array<T>) => boolean, thisArg?: any): T;
  findLastIndex(callbackfn: (value: T, index: number, target: Array<T>) => boolean, thisArg?: any): number;
}

interface TypedArray {
  findLast(callbackfn: (value: any, index: number, target: ) => boolean, thisArg?: any): any;
  findLastIndex(callbackfn: (value: any, index: number, target: ) => boolean, thisArg?: any): number;
}

入口点

core-js/proposals/array-find-from-last