//#region src/math/maxBy.d.ts /** * This method is like max except that it accepts iteratee which is invoked for each element * in array to generate the criterion by which the value is ranked. * The iteratee is invoked with one argument: (value). * * @param array - The array to iterate over * @param iteratee - The iteratee invoked per element * @returns Returns the maximum value * * @example * maxBy([{ n: 1 }, { n: 2 }, { n: 3 }], (o) => o.n) // => { n: 3 } * maxBy([], (o) => o.n) // => undefined */ declare function maxBy(array: T[], iteratee: (item: T) => number): T | undefined; //#endregion export { maxBy }; //# sourceMappingURL=maxBy.d.cts.map