UNPKG

660 BTypeScriptView Raw
1/** Helper function for formatting ratios as CSS percentage values. */
2export declare function formatPercentage(ratio: number): string;
3/**
4 * Mutates the values array by filling all the values between start and end index (inclusive) with the fill value.
5 */
6export declare function fillValues<T>(values: T[], startIndex: number, endIndex: number, fillValue: T): void;
7/**
8 * Returns the minimum element of an array as determined by comparing the results of calling the arg function on each
9 * element of the array. The function will only be called once per element.
10 */
11export declare function argMin<T>(values: T[], argFn: (value: T) => any): T | undefined;