Skip to main content

Array find from last

Less than 1 minutefeaturees-proposalmissing-example

Array find from lastopen in new window

Types

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;
}

Entry points

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