@mui/x-charts
Version:
The community edition of MUI X Charts components.
8 lines • 342 B
TypeScript
/**
* Efficiently finds the minimum and maximum values in an array of numbers.
* This functions helps preventing maximum call stack errors when dealing with large datasets.
*
* @param data The array of numbers to evaluate
* @returns [min, max] as numbers
*/
export declare function findMinMax(data: readonly number[]): [number, number];