UNPKG

ngx-bootstrap

Version:
12 lines (11 loc) 691 B
/** * Returns the index of the last element in the array where predicate is true, and -1 * otherwise. * @param array The source array to search in * @param predicate find calls predicate once for each element of the array, in descending * order, until it finds one where predicate returns true. If such an element is found, * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1. */ export declare function findLastIndex<T>(array: T[], predicate: (value: T, index: number, obj: T[]) => boolean): number; export declare function chunkByNumber<T>(array: T[], size: number): T[][]; export declare function isNumber(value?: unknown): value is number;