@gpa-gemstone/helper-functions
Version:
Helper Functions for gpa-gemstone packages
9 lines (8 loc) • 412 B
TypeScript
/**
* This function finds the last index where predicate is true
* @param array: array to e searched
* @param predicate: the function to be called on every element
* @returns Function will return the last index where predictae returns true or -1 if not found
*/
declare function findLastIndex<T>(array: Array<T>, predicate: (value: T, index: number, obj: T[]) => boolean): number;
export { findLastIndex };