@zendesk/react-measure-timing-hooks
Version:
react hooks for measuring time to interactive and time to render of components
3 lines (2 loc) • 302 B
TypeScript
export declare function findLast<T, S extends T>(array: readonly T[], predicate: (value: T, index: number, array: readonly T[]) => value is S): S | undefined;
export declare function findLast<T>(array: readonly T[], predicate: (value: T, index: number, array: readonly T[]) => unknown): T | undefined;