export type TGetMaxFromArrArgs = Parameters; export type TGetMaxFromArrReturn = ReturnType; /** * Gets max number from an array of numbers * @param {number[]} arr Source array of numbers (must be non-empty) * @returns {number} Maximum value * @throws {TypeError} getMaxFromArr: expected a non-empty array of numbers * @example * // How to get max number from Array of numbers? * const arr = [ 100, 200, 300 ]; * const max = getMaxFromArr(arr); * console.log(max); // 300 * @example * // Find the highest value for a chart scale * const chartMax = getMaxFromArr(points.map((point) => point.value)); */ export declare const getMaxFromArr: (arr: number[]) => number;